1 ; RUN: opt -hotcoldsplit -hotcoldsplit-threshold=0 -S < %s | FileCheck %s
2 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
3 target triple = "x86_64-apple-macosx10.14.0"
5 @G = external dso_local global i32, align 4
7 define void @foo(i32) {
9 tail call void @_Z10sideeffectv()
10 br i1 %2, label %sink, label %exit
13 tail call void @_Z10sideeffectv()
14 call void @llvm.trap()
21 define void @bar(i32) {
22 %2 = icmp eq i32 %0, 0
23 tail call void @_Z10sideeffectv()
24 br i1 %2, label %sink, label %exit
27 tail call void @_Z10sideeffectv()
28 call void @llvm.trap()
35 declare void @llvm.trap() noreturn cold
36 declare void @_Z10sideeffectv()