From 98f3eb1f98f5f3749926f17c2b25736cd7c6fccc Mon Sep 17 00:00:00 2001 From: Alexander Monakov Date: Thu, 17 Sep 2009 17:33:37 +0400 Subject: graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only for ARRAY_REFs. 2009-09-17 Alexander Monakov gcc: * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. libgomp: * testsuite/libgomp.graphite/bounds.c: New test. From-SVN: r151802 --- libgomp/ChangeLog | 4 ++++ libgomp/testsuite/libgomp.graphite/bounds.c | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 libgomp/testsuite/libgomp.graphite/bounds.c (limited to 'libgomp') diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index d94cb78..3572d17 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -1,3 +1,7 @@ +2009-09-17 Alexander Monakov + + * testsuite/libgomp.graphite/bounds.c: New test. + 2009-09-11 Ralf Wildenhues * Makefile.am (libgomp_la_LINK): New. diff --git a/libgomp/testsuite/libgomp.graphite/bounds.c b/libgomp/testsuite/libgomp.graphite/bounds.c new file mode 100644 index 0000000..bd36c0f --- /dev/null +++ b/libgomp/testsuite/libgomp.graphite/bounds.c @@ -0,0 +1,13 @@ +int foo(int *a, int n) +{ + int i; + for (i = 2; i < n; i++) + a[i] += a[i+1]; +} + +/* Check that Graphite dependency checking notes the dependency. */ +/* { dg-do compile } */ +/* { dg-final { scan-tree-dump-times "0 loops carried no dependency" 1 "graphite" } } */ +/* { dg-final { cleanup-tree-dump "graphite" } } */ +/* { dg-final { cleanup-tree-dump "parloops" } } */ +/* { dg-final { cleanup-tree-dump "optimized" } } */ -- cgit v1.1