]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/graphite-scop-detection.c
re PR tree-optimization/59817 (ICE in extract_affine_chrec with -O2 -ftree-loop-linear)
authorRichard Biener <rguenther@suse.de>
Mon, 14 Apr 2014 08:09:06 +0000 (08:09 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 14 Apr 2014 08:09:06 +0000 (08:09 +0000)
commit033aa406ca81760098f7a8b9a193d6fd2391ace6
treed7e6bcc55f059e8078a20e844d75b2e20e91d772
parentb82b06487ef2331db4610d74a2d2816b8bb0ddd2
re PR tree-optimization/59817 (ICE in extract_affine_chrec with -O2 -ftree-loop-linear)

2014-04-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/59817
PR tree-optimization/60453
* graphite-scop-detection.c (graphite_can_represent_scev): Complete
recursion to catch all CHRECs in the scalar evolution and restrict
the predicate for the remains appropriately.

* gfortran.dg/graphite/pr59817.f: New testcase.
* gcc.dg/graphite/pr59817-1.c: Likewise.
* gcc.dg/graphite/pr59817-2.c: Likewise.

From-SVN: r209355
gcc/ChangeLog
gcc/graphite-scop-detection.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/pr59817-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/graphite/pr59817-2.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/graphite/pr59817.f [new file with mode: 0644]