re PR tree-optimization/82449 (code-gen error in get_rename_from_scev)
authorRichard Biener <rguenther@suse.de>
Mon, 9 Oct 2017 13:50:10 +0000 (13:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 9 Oct 2017 13:50:10 +0000 (13:50 +0000)
commit7668b0a65616dec614379a396186f3a03e329965
treeb0e28952a26e671e7b03d21e4f1a5d6f733c76ce
parent14108eda7ee4aaaa4840be8728b3161f8c7bd364
re PR tree-optimization/82449 (code-gen error in get_rename_from_scev)

2017-10-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/82449
* sese.c (scev_analyzable_p): Check whether the SCEV is linear.
* tree-chrec.h (evolution_function_is_constant_p): Adjust to
allow constant addresses.
* tree-chrec.c (scev_is_linear_expression): Constant evolutions
are linear.

* gfortran.dg/graphite/pr82449.f: New testcase.

From-SVN: r253546
gcc/ChangeLog
gcc/sese.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/graphite/pr82449.f [new file with mode: 0644]
gcc/tree-chrec.c
gcc/tree-chrec.h