From: Kazu Hirata Date: Sun, 3 Oct 2004 15:33:20 +0000 (+0000) Subject: re PR tree-optimization/16632 (A couple fold-const.c optimizations are non-functional) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=807e955b1e70ed23f1c15496073432a129312eb1;p=gcc.git re PR tree-optimization/16632 (A couple fold-const.c optimizations are non-functional) PR tree-optimization/16632 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to fold (A & C) == D into 0, fold ~C. Similarly, for the case where | is used instead of &. PR tree-optimization/16632 * testsuite/gcc.dg/tree-ssa/20041002-1.c: New. From-SVN: r88450 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8cb2906e2f9..06f624740cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,6 @@ 2004-10-03 Kazu Hirata + PR tree-optimization/16632 * fold-const.c (fold) [EQ_EXPR]: When seeing if D & ~C != 0 to fold (A & C) == D into 0, fold ~C. Similarly, for the case where | is used instead of &. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3e323055361..ac4ecfd20c0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,6 @@ 2004-10-03 Kazu Hirata + PR tree-optimization/16632 * gcc.dg/tree-ssa/20041002-1.c: New. 2004-10-03 Paul Brook