Skip to content

Commit e76ecbb

Browse files
committed
[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.
1 parent 8a8f0a0 commit e76ecbb

36 files changed

+37
-37
lines changed

llvm/test/Transforms/DeadArgElim/2006-06-27-struct-ret.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -deadargelim -disable-output
1+
; RUN: opt < %s -passes=deadargelim -disable-output
22

33
define internal void @build_delaunay({ i32 }* sret({ i32 }) %agg.result) {
44
ret void

llvm/test/Transforms/DeadArgElim/2007-02-07-FuncRename.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
; RUN: opt < %s -deadargelim -S | grep "@test("
2-
; RUN: opt < %s -deadargelim -S | not grep dead
1+
; RUN: opt < %s -passes=deadargelim -S | grep "@test("
2+
; RUN: opt < %s -passes=deadargelim -S | not grep dead
33

44
define internal i32 @test(i32 %X, i32 %dead) {
55
ret i32 %X

llvm/test/Transforms/DeadArgElim/2007-10-18-VarargsReturn.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -deadargelim -S | not grep "ret i32 0"
1+
; RUN: opt < %s -passes=deadargelim -S | not grep "ret i32 0"
22
; PR1735
33

44
define internal i32 @test(i32 %A, ...) {

llvm/test/Transforms/DeadArgElim/2007-12-20-ParamAttrs.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -deadargelim -S | FileCheck %s
1+
; RUN: opt < %s -passes=deadargelim -S | FileCheck %s
22

33
%struct = type { }
44

llvm/test/Transforms/DeadArgElim/2008-01-16-VarargsParamAttrs.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -deadargelim -S | grep byval
1+
; RUN: opt < %s -passes=deadargelim -S | grep byval
22

33
%struct.point = type { double, double }
44
@pts = global [4 x %struct.point] [ %struct.point { double 1.000000e+00, double 2.000000e+00 }, %struct.point { double 3.000000e+00, double 4.000000e+00 }, %struct.point { double 5.000000e+00, double 6.000000e+00 }, %struct.point { double 7.000000e+00, double 8.000000e+00 } ], align 32 ; <[4 x %struct.point]*> [#uses=1]

llvm/test/Transforms/DeadArgElim/2008-06-23-DeadAfterLive.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -deadargelim -dce -S > %t
1+
; RUN: opt < %s -passes='deadargelim,function(dce)' -S > %t
22
; RUN: cat %t | grep 123
33

44
; This test tries to catch wrongful removal of return values for a specific case

llvm/test/Transforms/DeadArgElim/2009-03-17-MRE-Invoke.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt < %s -deadargelim | llvm-dis
1+
; RUN: opt < %s -passes=deadargelim | llvm-dis
22
; PR3807
33

44
define internal { i32, i32 } @foo() {

llvm/test/Transforms/DeadArgElim/2010-04-30-DbgInfo.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
2-
; RUN: opt -S -deadargelim < %s | FileCheck %s
2+
; RUN: opt -S -passes=deadargelim < %s | FileCheck %s
33

44
@.str = private constant [1 x i8] zeroinitializer, align 1 ; <[1 x i8]*> [#uses=1]
55

llvm/test/Transforms/DeadArgElim/2013-05-17-VarargsAndBlockAddress.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt %s -deadargelim -S | FileCheck %s
1+
; RUN: opt %s -passes=deadargelim -S | FileCheck %s
22

33

44
@block_addr = global i8* blockaddress(@varargs_func, %l1)

llvm/test/Transforms/DeadArgElim/NoundefAttrs.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
; RUN: opt -deadargelim -S < %s | FileCheck %s
1+
; RUN: opt -passes=deadargelim -S < %s | FileCheck %s
22

33
; If caller is changed to pass in undef, noundef, dereferenceable and other
44
; attributes that imply immediate undefined behavior should be delete.

0 commit comments

Comments
 (0)