Debian Codegraph @

gcc/testsuite/gcc.dg/tree-ssa/cunroll-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-cunroll-details" } */
3 int a[2];
4 int test2 (void);
5 void
6 test(int c)
7 {
8 int i;
9 for (i=0;i<c;i++)
10 {
11 a[i]=5;
12 if (test2())
13 return;
14 }
15 }
16
17 /* We are not able to get rid of the final conditional because the loop has two exits. */
18 /* { dg-final { scan-tree-dump "Not unrolling loop 1: contains call and code would grow" "cunroll"} } */