[NFC] Port all Feature tests to `-passes=` syntax
authorRoman Lebedev <lebedev.ri@gmail.com>
Thu, 8 Dec 2022 21:51:45 +0000 (00:51 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Thu, 8 Dec 2022 22:04:45 +0000 (01:04 +0300)
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

index 62ae38c92d5c2cbd58f579fa21907315ff5b48a3..21694141cf8d17989a46636a543177dd6a810d00 100644 (file)
@@ -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.
index 825afe82091dc550b569846df93f09732f9814d5..8a9409b967aed209883e594dcd6358f25b6583de 100644 (file)
@@ -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.
index b69b049052f82fb659d05c843a4eff5d4b26262d..772cd774c8e537de9bead798191497eb11be27ce 100644 (file)
@@ -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.
index dc4047e3d66fd0c167c0ab73fe75658f79ec8189..d0ad38dc26e5856439e9b2316ae59aa49d7f7e25 100644 (file)
@@ -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