diff options
| author | amonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-17 13:33:37 +0000 |
|---|---|---|
| committer | amonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-09-17 13:33:37 +0000 |
| commit | 249d544ddd3ccdd0a88419d00d33581be50339a2 (patch) | |
| tree | f78e2d3b8eb40141f1c072f1fb40f8648baee409 /libgomp/testsuite/libgomp.graphite | |
| parent | 2f29eac3e9ead14b1ad9e2d0926d3ef26c57c3d3 (diff) | |
| download | ppe42-gcc-249d544ddd3ccdd0a88419d00d33581be50339a2.tar.gz ppe42-gcc-249d544ddd3ccdd0a88419d00d33581be50339a2.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@151802 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/testsuite/libgomp.graphite')
| -rw-r--r-- | libgomp/testsuite/libgomp.graphite/bounds.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libgomp/testsuite/libgomp.graphite/bounds.c b/libgomp/testsuite/libgomp.graphite/bounds.c new file mode 100644 index 00000000000..bd36c0f8a22 --- /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" } } */ |

