Which was fixed by the code-gen rewrite.

Richard.

2017-10-06  Richard Biener  <rguent...@suse.de>

        PR tree-optimization/82421
        * gcc.dg/graphite/pr82421.c: New testcase.

Index: gcc/testsuite/gcc.dg/graphite/pr82421.c
===================================================================
--- gcc/testsuite/gcc.dg/graphite/pr82421.c     (nonexistent)
+++ gcc/testsuite/gcc.dg/graphite/pr82421.c     (working copy)
@@ -0,0 +1,21 @@
+/* { dg-do compile } */
+/* { dg-options "-O -floop-nest-optimize" } */
+
+int pc;
+
+void
+qy (int l9)
+{
+  int tw = 4;
+  int fb[tw];
+
+  while (l9 < 1)
+    {
+      int dr;
+
+      pc = fb[2];
+      for (dr = 0; dr < tw; ++dr)
+       fb[dr] = 0;
+      ++l9;
+    }
+}

Reply via email to