1 /* { dg-do compile } */
2 /* { dg-options "-O3 -fdump-tree-unswitch-optimized" } */
3
4 void bar();
5 void foo (int x, int n, int m)
6 {
7 for (int i = 0; i < n; ++i)
8 for (int j = 0; j < m; ++j)
9 if (x)
10 bar ();
11 }
12
13 /* { dg-final { scan-tree-dump "unswitching outer loop" "unswitch" } } */