1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-vrp1-stats -fdump-tree-dom1-stats" } */
8 /* In the following two cases, we should be able to thread edge through
11 void thread_entry_through_header (void)
15 for (i
= 0; i
< 170; i
++)
19 void thread_latch_through_header (void)
34 /* This is a TODO -- it is correct to thread both entry and latch edge through
35 the header, but we do not handle this case yet. */
37 void dont_thread_1 (void)
54 /* Avoid threading in the following two cases, to prevent creating subloops. */
56 void dont_thread_2 (int first
)
72 void dont_thread_3 (int nfirst
)
89 /* Avoid threading in this case, in order to avoid creating loop with
92 void dont_thread_4 (int a
, int nfirst
)
114 /* { dg-final { scan-tree-dump-times "Jumps threaded: 1" 1 "vrp1"} } */
115 /* { dg-final { scan-tree-dump-times "Jumps threaded: 2" 0 "vrp1"} } */
116 /* { dg-final { scan-tree-dump-times "Jumps threaded: 1" 0 "dom1"} } */
117 /* { dg-final { scan-tree-dump-times "Jumps threaded: 2" 1 "dom1"} } */
118 /* { dg-final { cleanup-tree-dump "dom1" } } */
119 /* { dg-final { cleanup-tree-dump "vrp1" } } */