Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | * fold-const.c (fold) <BIT_IOR_EXPR>: Optimize ~X|X and X|~X as -1. | sayle | 2004-06-27 | 1 | -0/+42 |
<BIT_XOR_EXPR>: Optimize ~X|X and X|~X as -1. <BIT_AND_EXPR>: Optimize ~X&X and X&~X as 0. <TRUTH_AND_EXPR, TRUTH_ANDIF_EXPR>: Optimize !X&&X and X&&!X as false. <TRUTH_OR_EXPR, TRUTH_ORIF_EXPR>: Optimize !X||X and !X||X as true. <TRUTH_XOR_EXPR>: Optimize !X^X and X^X! as true. Now that TRUTH_XOR_EXPR is a commutative tree code, don't test whether arg0 is a constant. * gcc.dg/20040527-1.c: New test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@83733 138bc75d-0d04-0410-961f-82ee72b054a4 |