]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/ssa-lim-18.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-lim-18.c
CommitLineData
0fc859f5
RB
1/* { dg-do compile } */
2/* { dg-options "-O -fstrict-aliasing -fdump-tree-lim2-details" } */
3
4unsigned p;
5
6void foo (float *q)
7{
8 for (int i = 0; i < 256; ++i)
9 {
10 if (p)
11 {
12 unsigned a = p;
13 *(q++) = 1.;
14 p = a + 1;
15 }
16 }
17}
18
19/* { dg-final { scan-tree-dump-times "Executing store motion" 1 "lim2" } } */