]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/pr87917.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr87917.c
CommitLineData
ef0519fd
RB
1/* { dg-do compile } */
2/* { dg-options "-O2 -ftree-loop-distribute-patterns -ftrapv -fno-tree-fre" } */
3
4void foo(int x[])
5{
6 int i, j;
7
8 for (i = 0; i < 2; i++)
9 for (j = 0; j < 2; j++)
10 {
11 x[i] = x[i*j];
12 x[i] = x[i*j];
13 }
14}