gcc/testsuite/gcc.dg/tree-ssa/update-cunroll.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -fdump-tree-optimized-details-blocks" } */ |
| 3 | int a[8]; |
| 4 | int t() |
| 5 | { |
| 6 | int i; |
| 7 | for (i = 0; i < 3; i++) |
| 8 | if (a[i]) |
| 9 | break; |
| 10 | return i; |
| 11 | } |
| 12 | /* Currently duplicate_loop_body_to_header_edge gets wrong computation of prob_pass_wont_exit |
| 13 | which assumes that the exit condition is last in the loop. */ |
| 14 | /* { dg-final { scan-tree-dump-times "Invalid sum" 0 "optimized" } } */ |