andor-2.c
1.06 KB
-
re PR middle-end/23670 (Fold does not fold (a|b)&b to b likewise for (a&b) | b to b) · 03bebcac
PR middle-end/23670 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Optimize (X&Y)|Y into (X,Y) and the corresponding symmetry related transformations. (fold_binary) <BIT_AND_EXPR>: Likewise, optimize (X|Y)&Y into (X,Y) and its symmetry related transformations. * gcc.dg/tree-ssa/andor-2.c: New test case. From-SVN: r110997
Roger Sayle committed