xref: /llvm-project/llvm/test/Transforms/InstCombine/cast-call-combine.ll (revision 5fb9e840476d531cb5377c69941f2ccfe4145475)
1; RUN: opt < %s -passes='function(instcombine),always-inline' -S | FileCheck %s
2
3define internal void @foo(ptr) alwaysinline {
4  ret void
5}
6
7define void @bar() noinline noreturn {
8  unreachable
9}
10
11define void @test() {
12  br i1 false, label %then, label %else
13
14then:
15  call void @bar()
16  unreachable
17
18else:
19  ; CHECK-NOT: call
20  call void @foo (ptr null)
21  ret void
22}
23
24