1 ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s
4 ; After moving the latch to the top of loop, there is no fall through from the
12 %call = call zeroext i1 @a()
13 br i1 %call, label %if.then, label %if.else, !prof !1
16 %call1 = call zeroext i1 @a()
17 br i1 %call1, label %while.body, label %if.end.1, !prof !1
20 %call2 = call zeroext i1 @a()
21 br i1 %call2, label %if.then.1, label %while.cond
28 %call3 = call zeroext i1 @a()
29 br i1 %call3, label %while.body, label %if.end
45 ; Test that when determining the edge probability from a node in a loop to a
46 ; node in its peer loop, the weights on edges in the first loop should be
54 %call = call zeroext i1 @a()
55 br i1 %call, label %if.then, label %if.else, !prof !1
58 %call1 = call zeroext i1 @a()
59 br i1 %call1, label %if.then, label %while.body, !prof !2
62 %call2 = call zeroext i1 @a()
63 br i1 %call2, label %while.body, label %if.end, !prof !2
75 ; Test that when determining the edge probability from a node in a loop to a
76 ; node in its outer loop, the weights on edges in the outer loop should be
77 ; ignored if we are building the chain for the inner loop.
88 %call = call zeroext i1 @a()
89 br i1 %call, label %if.then, label %if.else, !prof !3
97 %call1 = call zeroext i1 @a()
98 br i1 %call1, label %if.end, label %exit, !prof !4
102 %call2 = call zeroext i1 @a()
103 br i1 %call2, label %if.cond, label %if.end.2, !prof !2
113 declare zeroext i1 @a()
119 !1 = !{!"branch_weights", i32 10, i32 1}
120 !2 = !{!"branch_weights", i32 100, i32 1}
121 !3 = !{!"branch_weights", i32 1, i32 100}
122 !4 = !{!"branch_weights", i32 1, i32 1}