[PATCH] Fix PR rtl-opt/33512: Simple bitwise simplification missed
Richard Guenther
richard.guenther@gmail.com
Sat Feb 23 14:09:00 GMT 2008
On Sat, Feb 23, 2008 at 12:12 PM, <Andrew_Pinski@playstation.sony.com> wrote:
> Hi,
> We currently don't simplify some simple bitwise, x & ((~x) | y) which
> simplifies to y & x. This patch adds the simplification to RTX
> simplification function.
>
> OK? Bootstrapped and tested on i386-apple-darwin and has been in the PS3
> toolchain for about 3 releases.
Ok if you add a testcase.
Thanks,
Richard.
> Thanks,
> Andrew Pinski
>
> ChangeLog:
>
>
> * simplify-rtx.c (simplify_binary_operation_1): Add simplification
> of
> (and X (ior (not X) Y) and (and (ior (not X) Y) X).
>
>
More information about the Gcc-patches
mailing list