gcc/testsuite/g++.dg/tree-ssa/pred-1.C
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-profile_estimate" } */ |
| 3 | int a[100]; |
| 4 | void foo(int); |
| 5 | |
| 6 | int |
| 7 | main() |
| 8 | { |
| 9 | int i; |
| 10 | for (i=0;i<100;i++) |
| 11 | { |
| 12 | if (a[i]) |
| 13 | continue; |
| 14 | foo(i); |
| 15 | } |
| 16 | |
| 17 | return 0; |
| 18 | } |
| 19 | // { dg-final { scan-tree-dump "continue heuristics" "profile_estimate" } } |