PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ldist-4.c
blob4def9b4719d8e9b0f9b51ef69fcc25525f6cd198
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-loop-distribution -fdump-tree-ldist-all" } */
4 int loop1 (int k)
6 unsigned int i;
7 unsigned int j;
8 int a[100], b[100][100];
10 a[0] = k;
11 for (i = 1; i < 100; i ++)
13 for (j = 1; j < 100; j++)
15 a[j] = k * i;
16 b[i][j] = a[j-1] + k;
20 return b[100-1][1];
23 /* Distributing inner loop doesn't expose more parallelism. */
24 /* { dg-final { scan-tree-dump-times "distributed: split to 2 loops" 0 "ldist" } } */