blob: a2ed286f36434b0c53ce1d3762667230415a9681 [file] [log] [blame]
; RUN: opt -passes=hotcoldsplit -hotcoldsplit-threshold=0 -S < %s | FileCheck %s
; Do not outline calls to @llvm.eh.typeid.for. See llvm.org/PR39545.
@_ZTIi = external constant ptr
; CHECK-LABEL: @fun
; CHECK-NOT: call {{.*}}@fun.cold.1
define void @fun() {
entry:
br i1 undef, label %if.then, label %if.else
if.then:
ret void
if.else:
%t = call i32 @llvm.eh.typeid.for(ptr @_ZTIi)
call void @sink()
ret void
}
declare void @sink() cold
declare i32 @llvm.eh.typeid.for(ptr)