diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2011-07-26 18:47:44 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2011-07-26 18:47:44 +0000 |
commit | 4c7d675552917db06371e5316b6a170b246a0653 (patch) | |
tree | eb8c91e40946cf110afb23ca04d3f96c9b631c4a /gcc/tree-scalar-evolution.c | |
parent | bf03b9ffeca63804bbdaafe308279b42caa0e2be (diff) | |
download | gcc-4c7d675552917db06371e5316b6a170b246a0653.zip gcc-4c7d675552917db06371e5316b6a170b246a0653.tar.gz gcc-4c7d675552917db06371e5316b6a170b246a0653.tar.bz2 |
Fix PR48805: Do not instantiate ADDR_EXPRs
With this patch we avoid instantiating ADDR_EXPR: it makes no sense
to translate &b[i] into &b[{0, +, 1}_1].
Bootstrapped and tested on amd64-linux.
2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
PR middle-end/48805
* tree-scalar-evolution.c (instantiate_scev_r): Return
chrec_dont_know for ADDR_EXPR.
* gcc.dg/graphite/id-pr48805.c: New.
From-SVN: r176801
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r-- | gcc/tree-scalar-evolution.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index bfa8c93..00fcd3f 100644 --- a/gcc/tree-scalar-evolution.c +++ b/gcc/tree-scalar-evolution.c @@ -2645,6 +2645,7 @@ instantiate_scev_r (basic_block instantiate_below, TREE_OPERAND (chrec, 0), fold_conversions, cache, size_expr); + case ADDR_EXPR: case SCEV_NOT_KNOWN: return chrec_dont_know; |