1 ; RUN: opt -passes=hotcoldsplit -hotcoldsplit-threshold=0 -S < %s | FileCheck %s
3 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-apple-macosx10.14.0"
6 ; Do not split out `resume` instructions.
8 ; CHECK-LABEL: define {{.*}}@foo.cold.1(
9 ; CHECK: call {{.*}}@sink(
10 ; CHECK-NOT: resume i32 undef
14 define i32 @foo() personality i8 0 {
16 invoke void @llvm.donothing() to label %normal unwind label %exception
19 %cleanup = landingpad i32 cleanup
20 br i1 undef, label %normal, label %continue_exception
23 call void @sideeffect(i32 0)
31 br i1 undef, label %continue_exception, label %exit
34 call void @sideeffect(i32 2)
38 declare void @sideeffect(i32)
40 declare void @sink() cold
42 declare void @llvm.donothing() nounwind readnone