2014-04-14 Richard Biener <rguenther@suse.de>
commit98acb419f002937108fe95d95fb87b655bc7efd6
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 2014 08:09:06 +0000 (14 08:09 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Apr 2014 08:09:06 +0000 (14 08:09 +0000)
treed7e6bcc55f059e8078a20e844d75b2e20e91d772
parent5b069d81349aebc8cbaf17098b740333554cf7c6
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209355 138bc75d-0d04-0410-961f-82ee72b054a4
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]