2 // { dg-options "-O2 -fgimple -fdump-statistics" }
4 // This is a collection of seemingly threadble paths that should not be allowed.
8 // Possible thread from 2->4->3, but it would rotate the loop.
24 __BB(4,loop_header(1)):
25 i_1
= __PHI (__BB2
: 0, __BB3
: i_5
);
36 // Possible thread from 2->3->5 but threading through the empty latch
37 // would create a non-empty latch.
47 __BB(3,loop_header(1)):
48 i_8
= __PHI (__BB5
: i_5
, __BB2
: 0);
65 // Possible thread from 3->5->6->3 but this would thread through the
66 // header but not exit the loop.
90 __BB(6,loop_header(1)):
91 i_1
= __PHI (__BB2
: 1, __BB5
: i_7
);
102 // { dg-final { scan-tree-dump-not "Jumps threaded" "statistics" } }