]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-scalar-evolution.c
Fix PR48805: Do not instantiate ADDR_EXPRs
authorSebastian Pop <sebastian.pop@amd.com>
Tue, 26 Jul 2011 18:47:44 +0000 (18:47 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Tue, 26 Jul 2011 18:47:44 +0000 (18:47 +0000)
commit4c7d675552917db06371e5316b6a170b246a0653
treeeb8c91e40946cf110afb23ca04d3f96c9b631c4a
parentbf03b9ffeca63804bbdaafe308279b42caa0e2be
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
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/id-pr48805.c [new file with mode: 0644]
gcc/tree-scalar-evolution.c