blob: 44767cd27c32b8ed4e5f90b801a885dc73a85409 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-cddce2 -ffinite-loops" } */
int
f1 (void)
{
int i, j;
#pragma acc parallel loop tile(2,3)
for (i = 1; i < 10; i++)
for (j = 1; j < 10; j++)
for (;;)
;
return i + j;
}
int
f2 (void)
{
int i, j, k;
#pragma acc parallel loop tile(2,3)
for (i = 1; i < 10; i++)
for (j = 1; j < 10; j++)
for (k = 1; k < 10; k++)
;
return i + j;
}
/* { dg-final { scan-tree-dump-not "if" "cddce2"} } */
|