diff options
author | Kazu Hirata <kazu@gcc.gnu.org> | 2004-10-03 15:33:20 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2004-10-03 15:33:20 +0000 |
commit | 807e955b1e70ed23f1c15496073432a129312eb1 (patch) | |
tree | 0fad60829cd10d8cc51f066ecc425cb61b5f161b | |
parent | 24109c9f287a922dbebe358b51a19100209c0022 (diff) | |
download | gcc-807e955b1e70ed23f1c15496073432a129312eb1.zip gcc-807e955b1e70ed23f1c15496073432a129312eb1.tar.gz gcc-807e955b1e70ed23f1c15496073432a129312eb1.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 1 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8cb2906..06f6247 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,6 @@ 2004-10-03 Kazu Hirata <kazu@cs.umass.edu> + 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 3e32305..ac4ecfd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,6 @@ 2004-10-03 Kazu Hirata <kazu@cs.umass.edu> + PR tree-optimization/16632 * gcc.dg/tree-ssa/20041002-1.c: New. 2004-10-03 Paul Brook <paul@codesourcery.com> |