This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r110997 - in /trunk/gcc: ChangeLog fold-const.c...
- From: sayle at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Tue, 14 Feb 2006 21:08:52 -0000
- Subject: r110997 - in /trunk/gcc: ChangeLog fold-const.c...
Author: sayle
Date: Tue Feb 14 21:08:52 2006
New Revision: 110997
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110997
Log:
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.
Added:
trunk/gcc/testsuite/gcc.dg/tree-ssa/andor-2.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog