bounds.c 422 B

1234567891011121314
  1. int foo(int *a, int n)
  2. {
  3. int i;
  4. for (i = 2; i < n; i++)
  5. a[i] += a[i+1];
  6. }
  7. /* Check that Graphite dependency checking notes the dependency. */
  8. /* { dg-do compile } */
  9. /* { dg-final { scan-tree-dump-times "0 loops carried no dependency" 1 "graphite" } } */
  10. /* { dg-final { cleanup-tree-dump "graphite" } } */
  11. /* { dg-final { cleanup-tree-dump "parloops" } } */
  12. /* { dg-final { cleanup-tree-dump "optimized" } } */