diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2009-09-17 17:33:37 +0400 |
---|---|---|
committer | Alexander Monakov <amonakov@gcc.gnu.org> | 2009-09-17 17:33:37 +0400 |
commit | 98f3eb1f98f5f3749926f17c2b25736cd7c6fccc (patch) | |
tree | f78e2d3b8eb40141f1c072f1fb40f8648baee409 /libgomp | |
parent | 07ffa034dd509e6838f565d51ee8b25292f79d1a (diff) | |
download | gcc-98f3eb1f98f5f3749926f17c2b25736cd7c6fccc.zip gcc-98f3eb1f98f5f3749926f17c2b25736cd7c6fccc.tar.gz gcc-98f3eb1f98f5f3749926f17c2b25736cd7c6fccc.tar.bz2 |
graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only for ARRAY_REFs.
2009-09-17 Alexander Monakov <amonakov@ispras.ru>
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
Diffstat (limited to 'libgomp')
-rw-r--r-- | libgomp/ChangeLog | 4 | ||||
-rw-r--r-- | libgomp/testsuite/libgomp.graphite/bounds.c | 13 |
2 files changed, 17 insertions, 0 deletions
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 <amonakov@ispras.ru> + + * testsuite/libgomp.graphite/bounds.c: New test. + 2009-09-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> * 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" } } */ |