[PATCH] Implement (a & B) OP0 (c & B) into (a OP0 c) & B simplifying into forwprop

2012-04-20 Thread Andrew Pinski
Hi, I noticed a missed simple optimization on the tree level where the and expression could be commoned out. This patch implements the optimization in tree-ssa-forwprop.c. I thought it would be good to get it in even before my tree combiner work gets in (which I am still working on but recently

Re: [PATCH] Implement (a & B) OP0 (c & B) into (a OP0 c) & B simplifying into forwprop

2012-04-23 Thread Richard Guenther
On Sat, Apr 21, 2012 at 4:26 AM, Andrew Pinski wrote: > Hi, >  I noticed a missed simple optimization on the tree level where the > and expression could be commoned out. > This patch implements the optimization in tree-ssa-forwprop.c.   I > thought it would be good to get it in even before my tree