bolt/deps/llvm-18.1.8/llvm/test/Transforms/InstCombine/cast-call-combine.ll
2025-02-14 19:21:04 +01:00

23 lines
368 B
LLVM

; RUN: opt < %s -passes='function(instcombine),always-inline' -S | FileCheck %s
define internal void @foo(ptr) alwaysinline {
ret void
}
define void @bar() noinline noreturn {
unreachable
}
define void @test() {
br i1 false, label %then, label %else
then:
call void @bar()
unreachable
else:
; CHECK-NOT: call
call void @foo (ptr null)
ret void
}