view test/Transforms/InstCombine/cast-callee-deopt-bundles.ll @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents 7d135dc70f03
children
line wrap: on
line source

; 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
}