http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59817
--- Comment #9 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Apr 22 13:22:32 2014 New Revision: 209628 URL: http://gcc.gnu.org/viewcvs?rev=209628&root=gcc&view=rev Log: 2014-04-22 Richard Biener <rguent...@suse.de> Backport from mainline 2014-04-14 Richard Biener <rguent...@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. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/graphite/pr59817-1.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/graphite/pr59817-2.c branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/graphite/pr59817.f Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/graphite-scop-detection.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog