https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82321
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Author: rguenth Date: Tue Sep 26 11:05:42 2017 New Revision: 253199 URL: https://gcc.gnu.org/viewcvs?rev=253199&root=gcc&view=rev Log: 2017-09-26 Richard Biener <rguent...@suse.de> PR tree-optimization/82321 * graphite.c (canonicalize_loop_closed_ssa): Properly check for the def being inside the loop. * gcc.dg/graphite/pr82321.c: New testcase. Added: trunk/gcc/testsuite/gcc.dg/graphite/pr82321.c Modified: trunk/gcc/ChangeLog trunk/gcc/graphite.c trunk/gcc/testsuite/ChangeLog