Bjorn Pettersson e76ecbb0f3 [test] Use opt -passes syntax in DeadArgElim lit tests. NFC
The legacy PM is deprecated, so update a bunch of lit tests running
opt to use the new PM syntax when specifying the pipeline.
2022-01-17 18:14:36 +01:00

13 lines
252 B
LLVM

; RUN: opt < %s -passes=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()