This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix PR rtl-opt/33512: Simple bitwise simplification missed


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.

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).

Attachment: and.diff.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]