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