llvm/test/Transforms/DeadArgElim/operandbundle.ll
David Majnemer 688b5df9e2 [OperandBundles] Have DeadArgElim play nice with operand bundles
A call site's use of a Value might not correspond to an argument
operand but to a bundle operand.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256326 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-23 09:58:36 +00:00

13 lines
245 B
LLVM

; RUN: opt < %s -deadargelim -S | FileCheck %s
define internal void @f(i32 %arg) {
entry:
call void @g() [ "foo"(i32 %arg) ]
ret void
}
; CHECK-LABEL: define internal void @f(
; CHECK: call void @g() [ "foo"(i32 %arg) ]
declare void @g()