Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/ldist-39.c

raw
1 /* PR/106533 */
2 /* { dg-options "-O2 -fdump-tree-ldist-optimized" } */
3
4 void bar (int *a, int * __restrict b)
5 {
6 for (int k = 0; k < 10; k++)
7 {
8 for (int j = 0; j < 100000; ++j)
9 a[j] = b[j];
10 __builtin_printf ("Foo!");
11 }
12 }
13
14 /* The stmt with side-effects in the outer loop should not prevent
15 distribution of the inner loop of the loop nest. */
16 /* { dg-final { scan-tree-dump "optimized: Loop . distributed: split to 0 loops and 1 library calls" "ldist" } } */