[InstCombine] Signed saturation patterns
[llvm-core.git] / test / Transforms / InstCombine / cast-call-combine.ll
blobbe70a8763ea8862cb4fa549e6bc14965a46a1cb7
1 ; RUN: opt < %s -always-inline -instcombine -S | FileCheck %s
3 define internal void @foo(i16*) alwaysinline {
4   ret void
7 define void @bar() noinline noreturn {
8   unreachable
11 define void @test() {
12   br i1 false, label %then, label %else
14 then:
15   call void @bar()
16   unreachable
18 else:
19   ; CHECK-NOT: call
20   call void bitcast (void (i16*)* @foo to void (i8*)*) (i8* null)
21   ret void