1 ; RUN: opt -S -passes=hotcoldsplit -hotcoldsplit-threshold=-1 < %s 2>&1 | FileCheck %s
3 ; CHECK-LABEL: define {{.*}} @foo(
4 ; CHECK-NOT: llvm.assume
5 ; CHECK: call void @foo.cold.1()
9 ; CHECK-LABEL: define {{.*}} @foo.cold.1(
10 ; CHECK-NOT: llvm.assume
11 ; CHECK: call void @cold()
12 ; CHECK-NOT: llvm.assume
15 define void @foo(i1 %cond) {
17 br i1 %cond, label %cold, label %cont
20 call void @llvm.assume(i1 %cond)
25 %cmp = icmp eq i1 %cond, true
26 br i1 %cmp, label %exit1, label %exit2
29 call void @llvm.assume(i1 %cond)
36 declare void @llvm.assume(i1)
38 declare void @cold() cold