blob: 0753263278701d85fef4c8bb0ded489840f528af (
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
|
/* { dg-do run } */
/* { dg-options "-O -floop-nest-optimize -fno-tree-scev-cprop -fdump-tree-graphite-details" } */
int rx, in;
int
main (void)
{
const int tj = 3;
int as[tj];
static int l4;
while (l4 < 1)
{
for (rx = 0; rx < tj; ++rx)
{
for (in = 0; in < tj; ++in)
as[in] = 1;
as[rx] = 0;
}
++l4;
}
if (as[tj - 1] != 0)
__builtin_abort ();
}
/* { dg-final { scan-tree-dump "loop nest optimized" "graphite" } } */
|