summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/cast-callee-deopt-bundles.ll
blob: 0f8601b855cf32bd570225e6e76b7060ed4d8345 (plain)
1
2
3
4
5
6
7
8
9
10
11
; RUN: opt -instcombine -S < %s | FileCheck %s

declare void @foo(i32)

define void @g() {
; CHECK-LABEL: @g(
 entry:
; CHECK: call void @foo(i32 0) [ "deopt"() ]
  call void bitcast (void (i32)* @foo to void ()*) ()  [ "deopt"() ]
  ret void
}
OpenPOWER on IntegriCloud