1 ; RUN: opt -S -passes=hotcoldsplit -hotcoldsplit-threshold=-1 < %s 2>&1 | FileCheck %s
3 ; CHECK-LABEL: define {{.*}}@fun
4 ; CHECK: call {{.*}}@fun.cold.2(
6 ; CHECK: call {{.*}}@fun.cold.1(
10 br i1 undef, label %A.then, label %A.else
16 br i1 undef, label %A.then5, label %A.end
25 %A.cleanup.dest.slot.0 = phi i32 [ 1, %A.then5 ], [ 0, %A.end ]
29 br i1 undef, label %B.then, label %B.else
38 br i1 undef, label %B.then5, label %B.end
47 %B.cleanup.dest.slot.0 = phi i32 [ 1, %B.then5 ], [ 0, %B.end ]
51 ; CHECK-LABEL: define {{.*}}@fun.cold.1(
52 ; CHECK: %B.cleanup.dest.slot.0 = phi i32 [ 1, %B.then5 ], [ 0, %B.end ]
53 ; CHECK-NEXT: unreachable
55 ; CHECK-LABEL: define {{.*}}@fun.cold.2(
56 ; CHECK: %A.cleanup.dest.slot.0 = phi i32 [ 1, %A.then5 ], [ 0, %A.end ]
57 ; CHECK-NEXT: unreachable