andor-4.c
470 Bytes
-
re PR tree-optimization/33512 (Simple bitwise simplification missed) · a1e179f5
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
Andrew Pinski committed