1 ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux < %s | FileCheck %s -check-prefix=CHECK
2 ; RUN: llc -mcpu=corei7 -mtriple=x86_64-linux -outline-optional-branches < %s | FileCheck %s -check-prefix=CHECK-OUTLINE
4 define void @foo(i32 %t1, i32 %t2) {
5 ; Test that we lift the call to 'c' up to immediately follow the call to 'b'
6 ; when we disable the cfg conflict check.
14 ; CHECK-OUTLINE-LABEL: foo:
15 ; CHECK-OUTLINE: callq b
16 ; CHECK-OUTLINE: callq c
17 ; CHECK-OUTLINE: callq d
18 ; CHECK-OUTLINE: callq a
21 %cmp = icmp eq i32 %t1, 0
22 br i1 %cmp, label %if.then, label %if.end
33 %cmp2 = icmp eq i32 %t2, 0
34 br i1 %cmp2, label %if.then2, label %if.end2, !prof !1
50 !1 = !{!"branch_weights", i32 64, i32 4}