diff options
author | Andrew Pinski <apinski@cavium.com> | 2012-04-24 07:05:09 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2012-04-24 00:05:09 -0700 |
commit | a1e179f5b74bef253aa2020eb5d21b292c42f441 (patch) | |
tree | 4318a722cabc2b845a5409a42ace68e3ffa59666 /contrib | |
parent | 57ac4c34019b76318bad402a8715992b65dcd969 (diff) | |
download | gcc-a1e179f5b74bef253aa2020eb5d21b292c42f441.zip gcc-a1e179f5b74bef253aa2020eb5d21b292c42f441.tar.gz gcc-a1e179f5b74bef253aa2020eb5d21b292c42f441.tar.bz2 |
re PR tree-optimization/33512 (Simple bitwise simplification missed)
2012-04-24 Andrew Pinski <apinski@cavium.com>
PR tree-opt/33512
* tree-ssa-forwprop.c (defcodefor_name): New function.
(simplify_bitwise_binary): Use defcodefor_name instead of manually
Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
Simplify "(~X | Y) & X" to "X & Y" and
"(~X & Y) | X" to "X | Y".
2012-04-24 Andrew Pinski <apinski@cavium.com>
PR tree-opt/33512
* gcc.dg/tree-ssa/andor-3.c: New testcase.
* gcc.dg/tree-ssa/andor-4.c: New testcase.
* gcc.dg/tree-ssa/andor-5.c: New testcase.
From-SVN: r186749
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions