On Sat, Apr 21, 2012 at 4:26 AM, Andrew Pinski <pins...@gmail.com> 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 combiner
> work gets in (which I am still working on but recently ran into a git
> merging issue which I am still trying to resolve).
>
> OK?  Bootstrapped and tested on x86_64-linux-gnu with no regressions.

Ok.

Thanks,
Richard.

> ChangeLog:
> * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
> (C & B) to (A OP0) & B.
>
> testsuite/ChangeLog:
> * gcc.dg/tree-ssa/forwprop-17.c: New testcase.

Reply via email to