1; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=-1 -S < %s | FileCheck %s
2
3target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
4target triple = "x86_64-apple-macosx10.14.0"
5
6; Consider `resume` to be cold.
7
8; CHECK-LABEL: define {{.*}}@foo.cold.1(
9; CHECK: call {{.*}}@sink(
10
11declare void @sink() cold
12
13define i32 @foo() personality i8 0 {
14entry:
15  br i1 undef, label %pre-resume-eh, label %normal
16
17pre-resume-eh:
18  call void @sink()
19  br label %resume-eh
20
21resume-eh:
22  resume i32 undef
23
24normal:
25  ret i32 0
26}
27