PR42917 (make lambda-code VTA aware)

Aldy Hernandez aldyh@redhat.com
Wed Mar 10 15:11:00 GMT 2010


Whoops, forgot the test.

Index: testsuite/gcc.dg/pr42917.c
===================================================================
--- testsuite/gcc.dg/pr42917.c	(revision 0)
+++ testsuite/gcc.dg/pr42917.c	(revision 0)
@@ -0,0 +1,16 @@
+/* { dg-do compile } */
+/* { dg-options "-O1 -ftree-loop-linear -fcompare-debug -fdump-tree-ltrans" } */
+
+extern int A[];
+
+void
+foo ()
+{
+  int i, j;
+  for (i = 0; i < 4; i++)
+    for (j = 255; j >= 0; j--)
+      A[j] = 0;
+}
+
+/* { dg-final { scan-tree-dump "Successfully transformed loop" "ltrans" } } */
+/* { dg-final { cleanup-tree-dump "ltrans" } } */



More information about the Gcc-patches mailing list