PR tree-optimization/81627
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / ssa-dom-thread-2a.c
blobb972f649442bbab3d43dcfc55708bb84c0c4f9fa
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp1-stats -fdump-tree-dom2-stats" } */
4 void bla();
6 /* In the following case, we should be able to thread edge through
7 the loop header. */
9 void thread_entry_through_header (void)
11 int i;
13 for (i = 0; i < 170; i++)
14 bla ();
17 /* There's a single jump thread that should be handled by the VRP
18 jump threading pass. */
19 /* { dg-final { scan-tree-dump-times "Jumps threaded: 1" 1 "vrp1"} } */
20 /* { dg-final { scan-tree-dump-times "Jumps threaded: 2" 0 "vrp1"} } */
21 /* { dg-final { scan-tree-dump-not "Jumps threaded" "dom2"} } */