[InstCombine] Signed saturation tests. NFC
[llvm-complete.git] / test / Transforms / HotColdSplit / resume.ll
blob67d2d2419167bb615886b1a3d32731822b43e190
1 ; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=-1 -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 ; Consider `resume` to be cold.
8 ; CHECK-LABEL: define {{.*}}@foo.cold.1(
9 ; CHECK: call {{.*}}@sink(
11 declare void @sink() cold
13 define i32 @foo() personality i8 0 {
14 entry:
15   br i1 undef, label %pre-resume-eh, label %normal
17 pre-resume-eh:
18   call void @sink()
19   br label %resume-eh
21 resume-eh:
22   resume i32 undef
24 normal:
25   ret i32 0