Committed. Richard.
2017-10-06 Richard Biener <rguent...@suse.de> PR tree-optimization/82422 * gcc.dg/graphite/pr82422.c: New testcase. Index: gcc/testsuite/gcc.dg/graphite/pr82422.c =================================================================== --- gcc/testsuite/gcc.dg/graphite/pr82422.c (nonexistent) +++ gcc/testsuite/gcc.dg/graphite/pr82422.c (working copy) @@ -0,0 +1,13 @@ +/* { dg-do compile } */ +/* { dg-options "-O2 -floop-nest-optimize -Wno-aggressive-loop-optimizations" } */ + +int a; +int b[6]; +int c () +{ + int d; + for (; d; d++) + b[d] = 0; + for (; d < 8; d++) + a += b[d]; +}