[llvm] 6e222fb - [NFC] Port all Feature tests to `-passes=` syntax

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 14:05:52 PST 2022


Author: Roman Lebedev
Date: 2022-12-09T01:04:45+03:00
New Revision: 6e222fbf6ec757944e4a83a4903712f7ada88f6b

URL: https://github.com/llvm/llvm-project/commit/6e222fbf6ec757944e4a83a4903712f7ada88f6b
DIFF: https://github.com/llvm/llvm-project/commit/6e222fbf6ec757944e4a83a4903712f7ada88f6b.diff

LOG: [NFC] Port all Feature tests to `-passes=` syntax

Added: 
    

Modified: 
    llvm/test/Feature/OperandBundles/inliner-conservative.ll
    llvm/test/Feature/OperandBundles/inliner-funclet-wineh.ll
    llvm/test/Feature/OperandBundles/merge-func.ll
    llvm/test/Feature/global_pv.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Feature/OperandBundles/inliner-conservative.ll b/llvm/test/Feature/OperandBundles/inliner-conservative.ll
index 62ae38c92d5c2..21694141cf8d1 100644
--- a/llvm/test/Feature/OperandBundles/inliner-conservative.ll
+++ b/llvm/test/Feature/OperandBundles/inliner-conservative.ll
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes='cgscc(inline)' < %s | FileCheck %s
 
 ; Check that the inliner does not inline through arbitrary unknown
 ; operand bundles.

diff  --git a/llvm/test/Feature/OperandBundles/inliner-funclet-wineh.ll b/llvm/test/Feature/OperandBundles/inliner-funclet-wineh.ll
index 825afe82091dc..8a9409b967aed 100644
--- a/llvm/test/Feature/OperandBundles/inliner-funclet-wineh.ll
+++ b/llvm/test/Feature/OperandBundles/inliner-funclet-wineh.ll
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -S -always-inline -mtriple=x86_64-windows-msvc < %s | FileCheck %s
+; RUN: opt -S -passes=always-inline -mtriple=x86_64-windows-msvc < %s | FileCheck %s
 
 ; WinEH requires funclet tokens on nounwind intrinsics if they can lower to
 ; regular function calls in the course of IR transformations.

diff  --git a/llvm/test/Feature/OperandBundles/merge-func.ll b/llvm/test/Feature/OperandBundles/merge-func.ll
index b69b049052f82..772cd774c8e53 100644
--- a/llvm/test/Feature/OperandBundles/merge-func.ll
+++ b/llvm/test/Feature/OperandBundles/merge-func.ll
@@ -1,4 +1,4 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -S -mergefunc < %s | FileCheck %s
+; RUN: opt -S -passes=mergefunc < %s | FileCheck %s
 
 ; Minor note: functions need to be at least three instructions long
 ; to be considered by -mergefunc.

diff  --git a/llvm/test/Feature/global_pv.ll b/llvm/test/Feature/global_pv.ll
index dc4047e3d66fd..d0ad38dc26e58 100644
--- a/llvm/test/Feature/global_pv.ll
+++ b/llvm/test/Feature/global_pv.ll
@@ -1,5 +1,5 @@
-; RUN: opt -temporarily-allow-old-pass-syntax -instcombine -S < %s | llvm-as
-; RUN: opt -temporarily-allow-old-pass-syntax -instcombine -globalopt -temporarily-allow-old-pass-syntax -S < %s | llvm-as
+; RUN: opt -passes=instcombine -S < %s | llvm-as
+; RUN: opt -passes='function(instcombine),globalopt' -S < %s | llvm-as
 @G1 = global i32 zeroinitializer
 @G2 = global i32 zeroinitializer
 @g = global <2 x i32*> zeroinitializer


        


More information about the llvm-commits mailing list