]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/predict-loop-exit-3.C
* passes.def (pass_early_thread_jumps): Schedule after forwprop.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / predict-loop-exit-3.C
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-profile_estimate -fdisable-tree-ethread" } */
3
4 int g;
5 int foo();
6 void test() {
7 while (foo() && (g < 10 || g > 20))
8 g++;
9 return;
10 }
11
12 /* { dg-final { scan-tree-dump-times "extra loop exit heuristics of edge\[^:\]*:" 2 "profile_estimate"} } */
13 /* { dg-final { scan-tree-dump-times "loop exit heuristics of edge\[^:\]*:" 3 "profile_estimate"} } */