Eric Christopher | cee313d | 2019-04-17 04:52:47 +0000 | [diff] [blame] | 1 | ; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=-1 -S < %s | FileCheck %s |
| 2 | |
| 3 | target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" |
| 4 | target 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 | |
| 11 | declare void @sink() cold |
| 12 | |
| 13 | define i32 @foo() personality i8 0 { |
| 14 | entry: |
| 15 | br i1 undef, label %pre-resume-eh, label %normal |
| 16 | |
| 17 | pre-resume-eh: |
| 18 | call void @sink() |
| 19 | br label %resume-eh |
| 20 | |
| 21 | resume-eh: |
| 22 | resume i32 undef |
| 23 | |
| 24 | normal: |
| 25 | ret i32 0 |
| 26 | } |