diff options
author | Richard Guenther <richard.guenther@uni-tuebingen.de> | 2005-01-29 19:25:17 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2005-01-29 19:25:17 +0000 |
commit | 020d90eeafef20bc913608dbf794ba33ee578774 (patch) | |
tree | b58ad08ab2f3110ce7e3fbfe49f072eeb418cc7f /gcc/expr.c | |
parent | b6e47ceb096b1dc503b035ad407634e62bd177a0 (diff) | |
download | gcc-020d90eeafef20bc913608dbf794ba33ee578774.zip gcc-020d90eeafef20bc913608dbf794ba33ee578774.tar.gz gcc-020d90eeafef20bc913608dbf794ba33ee578774.tar.bz2 |
re PR tree-optimization/15791 (fold misses that two ADDR_EXPR of an arrary obvious not equal)
2005-01-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
PR tree-optimization/15791
* fold-const.c (extract_array_ref): New function.
(fold): Fold comparisons between &a[i] and &a[j] or
semantically equivalent trees.
* gcc.dg/tree-ssa/pr15791-1.c: New testcase.
* gcc.dg/tree-ssa/pr15791-2.c: Likewise.
* gcc.dg/tree-ssa/pr15791-3.c: Likewise.
* gcc.dg/tree-ssa/pr15791-4.c: Likewise.
* gcc.dg/tree-ssa/pr15791-5.c: Likewise.
* g++.dg/tree-ssa/pr15791-1.C: Likewise.
* g++.dg/tree-ssa/pr15791-2.C: Likewise.
* g++.dg/tree-ssa/pr15791-3.C: Likewise.
* g++.dg/tree-ssa/pr15791-4.C: Likewise.
* g++.dg/tree-ssa/pr15791-5.C: Likewise.
From-SVN: r94414
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions