gcc/testsuite/g++.dg/tree-ssa/pr88797.C
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O3 -fdump-tree-split-paths-details" } */ |
| 3 | |
| 4 | |
| 5 | void use(unsigned); |
| 6 | bool f(unsigned x, unsigned y) { |
| 7 | return x < 1111 + (y <= 2222); |
| 8 | } |
| 9 | void test_f(unsigned x, unsigned y) { |
| 10 | for (unsigned i = 0; i < 3333; ++i) |
| 11 | use(f(x++, y++)); |
| 12 | } |
| 13 | |
| 14 | /* { dg-final { scan-tree-dump-not "Duplicating join block" "split-paths" } } */ |
| 15 | /* { dg-final { scan-tree-dump-times "appears to be a join point for if-convertable bbs." 1 "split-paths" } } */ |
| 16 |