From: Roman Lebedev Date: Thu, 8 Dec 2022 21:51:45 +0000 (+0300) Subject: [NFC] Port all Feature tests to `-passes=` syntax X-Git-Tag: upstream/17.0.6~24610 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6e222fbf6ec757944e4a83a4903712f7ada88f6b;p=platform%2Fupstream%2Fllvm.git [NFC] Port all Feature tests to `-passes=` syntax --- diff --git a/llvm/test/Feature/OperandBundles/inliner-conservative.ll b/llvm/test/Feature/OperandBundles/inliner-conservative.ll index 62ae38c92d5c..21694141cf8d 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 825afe82091d..8a9409b967ae 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 b69b049052f8..772cd774c8e5 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 dc4047e3d66f..d0ad38dc26e5 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