[llvm] e536982 - [NFC] Port all Inline tests to `-passes=` syntax

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 7 16:10:00 PST 2022


Author: Roman Lebedev
Date: 2022-12-08T03:09:27+03:00
New Revision: e5369823bc0655806469724335d0ca5a4c17d8c7

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

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

Added: 
    

Modified: 
    llvm/test/Transforms/Inline/2003-09-14-InlineValue.ll
    llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll
    llvm/test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll
    llvm/test/Transforms/Inline/2003-09-22-PHINodesInNormalInvokeDest.ll
    llvm/test/Transforms/Inline/2003-10-13-AllocaDominanceProblem.ll
    llvm/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll
    llvm/test/Transforms/Inline/2004-10-17-InlineFunctionWithoutReturn.ll
    llvm/test/Transforms/Inline/2007-04-15-InlineEH.ll
    llvm/test/Transforms/Inline/2007-06-25-WeakInline.ll
    llvm/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll
    llvm/test/Transforms/Inline/2008-09-02-NoInline.ll
    llvm/test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll
    llvm/test/Transforms/Inline/2009-05-07-CallUsingSelfCrash.ll
    llvm/test/Transforms/Inline/2010-05-12-ValueMap.ll
    llvm/test/Transforms/Inline/AArch64/binop.ll
    llvm/test/Transforms/Inline/AArch64/ext.ll
    llvm/test/Transforms/Inline/AArch64/gep-cost.ll
    llvm/test/Transforms/Inline/AArch64/inline-target-attr.ll
    llvm/test/Transforms/Inline/AArch64/logical-and-or.ll
    llvm/test/Transforms/Inline/AArch64/phi.ll
    llvm/test/Transforms/Inline/AArch64/select.ll
    llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll
    llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll
    llvm/test/Transforms/Inline/AArch64/sve-alloca-merge.ll
    llvm/test/Transforms/Inline/AArch64/switch.ll
    llvm/test/Transforms/Inline/AMDGPU/amdgpu-inline-alloca-argument.ll
    llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-dx10-clamp.ll
    llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-ieee.ll
    llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-unsafe-fp-atomics.ll
    llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-vecbonus.ll
    llvm/test/Transforms/Inline/AMDGPU/inline-denormal-fp-math.ll
    llvm/test/Transforms/Inline/AMDGPU/inline-hint.ll
    llvm/test/Transforms/Inline/AMDGPU/inline-target-cpu.ll
    llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-sram-ecc.ll
    llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-xnack.ll
    llvm/test/Transforms/Inline/ARM/inline-fp.ll
    llvm/test/Transforms/Inline/ARM/inline-target-attr.ll
    llvm/test/Transforms/Inline/ARM/loop-add.ll
    llvm/test/Transforms/Inline/ARM/loop-memcpy.ll
    llvm/test/Transforms/Inline/ARM/loop-noinline.ll
    llvm/test/Transforms/Inline/PR4909.ll
    llvm/test/Transforms/Inline/PowerPC/ext.ll
    llvm/test/Transforms/Inline/WebAssembly/inline-target-features.ll
    llvm/test/Transforms/Inline/X86/call-abi-compatibility.ll
    llvm/test/Transforms/Inline/X86/ext.ll
    llvm/test/Transforms/Inline/X86/extractvalue.ll
    llvm/test/Transforms/Inline/X86/inline-target-attr.ll
    llvm/test/Transforms/Inline/X86/inline-target-cpu-i686.ll
    llvm/test/Transforms/Inline/X86/inline-target-cpu-x86_64.ll
    llvm/test/Transforms/Inline/X86/insertvalue.ll
    llvm/test/Transforms/Inline/X86/switch.ll
    llvm/test/Transforms/Inline/align.ll
    llvm/test/Transforms/Inline/alloca-bonus.ll
    llvm/test/Transforms/Inline/alloca-dbgdeclare.ll
    llvm/test/Transforms/Inline/alloca-in-scc.ll
    llvm/test/Transforms/Inline/alloca_test.ll
    llvm/test/Transforms/Inline/arg-attr-propagation.ll
    llvm/test/Transforms/Inline/array-alloca.ll
    llvm/test/Transforms/Inline/attributes.ll
    llvm/test/Transforms/Inline/blockaddress.ll
    llvm/test/Transforms/Inline/byref-align.ll
    llvm/test/Transforms/Inline/byval-align.ll
    llvm/test/Transforms/Inline/byval-tail-call.ll
    llvm/test/Transforms/Inline/byval.ll
    llvm/test/Transforms/Inline/byval_lifetime.ll
    llvm/test/Transforms/Inline/call-site-attrs.ll
    llvm/test/Transforms/Inline/callbr.ll
    llvm/test/Transforms/Inline/callgraph-update.ll
    llvm/test/Transforms/Inline/casts.ll
    llvm/test/Transforms/Inline/cfg_preserve_test.ll
    llvm/test/Transforms/Inline/comdat-ipo.ll
    llvm/test/Transforms/Inline/crash-lifetime-marker.ll
    llvm/test/Transforms/Inline/debug-info-duplicate-calls.ll
    llvm/test/Transforms/Inline/debug-invoke.ll
    llvm/test/Transforms/Inline/deopt-bundles.ll
    llvm/test/Transforms/Inline/deoptimize-intrinsic-attrs.ll
    llvm/test/Transforms/Inline/deoptimize-intrinsic-cconv.ll
    llvm/test/Transforms/Inline/deoptimize-intrinsic.ll
    llvm/test/Transforms/Inline/dynamic-alloca-simplified-large.ll
    llvm/test/Transforms/Inline/dynamic_alloca_test.ll
    llvm/test/Transforms/Inline/ephemeral.ll
    llvm/test/Transforms/Inline/exponential-deferred-inlining.ll
    llvm/test/Transforms/Inline/externally_available.ll
    llvm/test/Transforms/Inline/frameescape.ll
    llvm/test/Transforms/Inline/guard-intrinsic.ll
    llvm/test/Transforms/Inline/ignore-debug-info.ll
    llvm/test/Transforms/Inline/inalloca-not-static.ll
    llvm/test/Transforms/Inline/infinite-loop-two-predecessors.ll
    llvm/test/Transforms/Inline/inline-assume.ll
    llvm/test/Transforms/Inline/inline-brunch-funnel.ll
    llvm/test/Transforms/Inline/inline-byval-bonus.ll
    llvm/test/Transforms/Inline/inline-call-penalty-option.ll
    llvm/test/Transforms/Inline/inline-constexpr-addrspacecast-argument.ll
    llvm/test/Transforms/Inline/inline-cost-dead-users.ll
    llvm/test/Transforms/Inline/inline-fast-math-flags.ll
    llvm/test/Transforms/Inline/inline-funclets.ll
    llvm/test/Transforms/Inline/inline-indirect-chain.ll
    llvm/test/Transforms/Inline/inline-indirect.ll
    llvm/test/Transforms/Inline/inline-invoke-tail.ll
    llvm/test/Transforms/Inline/inline-invoke-with-asm-call.ll
    llvm/test/Transforms/Inline/inline-min-legal-vector-width.ll
    llvm/test/Transforms/Inline/inline-no-builtin-compatible.ll
    llvm/test/Transforms/Inline/inline-optnone.ll
    llvm/test/Transforms/Inline/inline-probe-stack.ll
    llvm/test/Transforms/Inline/inline-ptrtoint-different-sizes.ll
    llvm/test/Transforms/Inline/inline-recur-stacksize.ll
    llvm/test/Transforms/Inline/inline-remark.ll
    llvm/test/Transforms/Inline/inline-retainRV-call.ll
    llvm/test/Transforms/Inline/inline-scalable.ll
    llvm/test/Transforms/Inline/inline-semantic-interposition.ll
    llvm/test/Transforms/Inline/inline-skip-use-empty-alloca.ll
    llvm/test/Transforms/Inline/inline-stack-probe-size.ll
    llvm/test/Transforms/Inline/inline-stacksize.ll
    llvm/test/Transforms/Inline/inline-strictfp.ll
    llvm/test/Transforms/Inline/inline-tail.ll
    llvm/test/Transforms/Inline/inline-varargs.ll
    llvm/test/Transforms/Inline/inline-vla.ll
    llvm/test/Transforms/Inline/inline_cleanup.ll
    llvm/test/Transforms/Inline/inline_constprop.ll
    llvm/test/Transforms/Inline/inline_dbg_declare.ll
    llvm/test/Transforms/Inline/inline_dce.ll
    llvm/test/Transforms/Inline/inline_inv_group.ll
    llvm/test/Transforms/Inline/inline_invoke.ll
    llvm/test/Transforms/Inline/inline_minisize.ll
    llvm/test/Transforms/Inline/inline_negative_result.ll
    llvm/test/Transforms/Inline/inline_prune.ll
    llvm/test/Transforms/Inline/inline_returns_twice.ll
    llvm/test/Transforms/Inline/inline_ssp.ll
    llvm/test/Transforms/Inline/inline_stats.ll
    llvm/test/Transforms/Inline/inline_unreachable-2.ll
    llvm/test/Transforms/Inline/inline_unreachable.ll
    llvm/test/Transforms/Inline/inlined-loop-metadata-inseltpoison.ll
    llvm/test/Transforms/Inline/inlined-loop-metadata.ll
    llvm/test/Transforms/Inline/internal-scc-members.ll
    llvm/test/Transforms/Inline/invoke-cleanup.ll
    llvm/test/Transforms/Inline/invoke-cost.ll
    llvm/test/Transforms/Inline/invoke_test-1.ll
    llvm/test/Transforms/Inline/invoke_test-2.ll
    llvm/test/Transforms/Inline/invoke_test-3.ll
    llvm/test/Transforms/Inline/label-annotation.ll
    llvm/test/Transforms/Inline/last-call-bonus.ll
    llvm/test/Transforms/Inline/launder.invariant.group.ll
    llvm/test/Transforms/Inline/lifetime-no-datalayout.ll
    llvm/test/Transforms/Inline/lifetime.ll
    llvm/test/Transforms/Inline/memprof_inline.ll
    llvm/test/Transforms/Inline/memprof_inline2.ll
    llvm/test/Transforms/Inline/nested-inline.ll
    llvm/test/Transforms/Inline/no-inline-line-tables.ll
    llvm/test/Transforms/Inline/no-unwind-inline-asm.ll
    llvm/test/Transforms/Inline/noalias-calls.ll
    llvm/test/Transforms/Inline/noalias-calls2.ll
    llvm/test/Transforms/Inline/noalias-cs.ll
    llvm/test/Transforms/Inline/noalias.ll
    llvm/test/Transforms/Inline/noalias2.ll
    llvm/test/Transforms/Inline/noalias3.ll
    llvm/test/Transforms/Inline/noinline-recursive-fn.ll
    llvm/test/Transforms/Inline/noinline.ll
    llvm/test/Transforms/Inline/nonnull.ll
    llvm/test/Transforms/Inline/opaque-ptr.ll
    llvm/test/Transforms/Inline/optimization-remarks-hotness-threshold.ll
    llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll
    llvm/test/Transforms/Inline/optimization-remarks-with-hotness.ll
    llvm/test/Transforms/Inline/optimization-remarks-yaml.ll
    llvm/test/Transforms/Inline/optimization-remarks.ll
    llvm/test/Transforms/Inline/parallel-loop-md-callee.ll
    llvm/test/Transforms/Inline/parallel-loop-md-merge.ll
    llvm/test/Transforms/Inline/parallel-loop-md.ll
    llvm/test/Transforms/Inline/partial-inline-act.ll
    llvm/test/Transforms/Inline/pr21206.ll
    llvm/test/Transforms/Inline/pr26698.ll
    llvm/test/Transforms/Inline/pr33637.ll
    llvm/test/Transforms/Inline/pr48209.ll
    llvm/test/Transforms/Inline/pr50270.ll
    llvm/test/Transforms/Inline/pr50589.ll
    llvm/test/Transforms/Inline/pr53206.ll
    llvm/test/Transforms/Inline/profile-meta.ll
    llvm/test/Transforms/Inline/ptr-diff.ll
    llvm/test/Transforms/Inline/recursive.ll
    llvm/test/Transforms/Inline/redundant-loads.ll
    llvm/test/Transforms/Inline/ret_attr_update.ll
    llvm/test/Transforms/Inline/switch.ll
    llvm/test/Transforms/Inline/unwind-inline-asm.ll
    llvm/test/Transforms/Inline/vector-bonus.ll
    llvm/test/Transforms/Inline/vector-no-bonus.ll
    llvm/test/Transforms/Inline/zero-cost.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/Inline/2003-09-14-InlineValue.ll b/llvm/test/Transforms/Inline/2003-09-14-InlineValue.ll
index 4f1f61b4c0732..9f2dd57cdf483 100644
--- a/llvm/test/Transforms/Inline/2003-09-14-InlineValue.ll
+++ b/llvm/test/Transforms/Inline/2003-09-14-InlineValue.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output
+; RUN: opt < %s -passes=inline -disable-output
 
 declare i32 @External()
 

diff  --git a/llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll b/llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll
index 9a5fcaeea7dcd..1a2085d4d6a1e 100644
--- a/llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll
+++ b/llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output
+; RUN: opt < %s -passes=inline -disable-output
 
 define i32 @main() personality i32 (...)* @__gxx_personality_v0 {
 entry:

diff  --git a/llvm/test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll b/llvm/test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll
index 2311cdab51835..038ba8e89798b 100644
--- a/llvm/test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll
+++ b/llvm/test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output
+; RUN: opt < %s -passes=inline -disable-output
 
 define i32 @main() personality i32 (...)* @__gxx_personality_v0 {
 entry:

diff  --git a/llvm/test/Transforms/Inline/2003-09-22-PHINodesInNormalInvokeDest.ll b/llvm/test/Transforms/Inline/2003-09-22-PHINodesInNormalInvokeDest.ll
index ce7d1fb3276aa..60fe0fea25db0 100644
--- a/llvm/test/Transforms/Inline/2003-09-22-PHINodesInNormalInvokeDest.ll
+++ b/llvm/test/Transforms/Inline/2003-09-22-PHINodesInNormalInvokeDest.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output
+; RUN: opt < %s -passes=inline -disable-output
 
 define i32 @main() personality i32 (...)* @__gxx_personality_v0 {
 entry:

diff  --git a/llvm/test/Transforms/Inline/2003-10-13-AllocaDominanceProblem.ll b/llvm/test/Transforms/Inline/2003-10-13-AllocaDominanceProblem.ll
index 4a80d37c09746..f071d0bf49c5f 100644
--- a/llvm/test/Transforms/Inline/2003-10-13-AllocaDominanceProblem.ll
+++ b/llvm/test/Transforms/Inline/2003-10-13-AllocaDominanceProblem.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output
+; RUN: opt < %s -passes=inline -disable-output
 
 define i32 @reload() {
 reloadentry:

diff  --git a/llvm/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll b/llvm/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll
index 62a7594ba437b..4e20d60a6e19c 100644
--- a/llvm/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll
+++ b/llvm/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output
+; RUN: opt < %s -passes=inline -disable-output
 
 ; Inlining the first call caused the inliner function to delete the second
 ; call.  Then the inliner tries to inline the second call, which no longer

diff  --git a/llvm/test/Transforms/Inline/2004-10-17-InlineFunctionWithoutReturn.ll b/llvm/test/Transforms/Inline/2004-10-17-InlineFunctionWithoutReturn.ll
index 866327f64a8f2..12b9be8d47d60 100644
--- a/llvm/test/Transforms/Inline/2004-10-17-InlineFunctionWithoutReturn.ll
+++ b/llvm/test/Transforms/Inline/2004-10-17-InlineFunctionWithoutReturn.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output
+; RUN: opt < %s -passes=inline -disable-output
 
 define i32 @test() {
         unreachable

diff  --git a/llvm/test/Transforms/Inline/2007-04-15-InlineEH.ll b/llvm/test/Transforms/Inline/2007-04-15-InlineEH.ll
index 38b3cdded1216..ea7c74aa103cb 100644
--- a/llvm/test/Transforms/Inline/2007-04-15-InlineEH.ll
+++ b/llvm/test/Transforms/Inline/2007-04-15-InlineEH.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 ; PR1335
 

diff  --git a/llvm/test/Transforms/Inline/2007-06-25-WeakInline.ll b/llvm/test/Transforms/Inline/2007-06-25-WeakInline.ll
index 064cda6632e09..a1519db7e445e 100644
--- a/llvm/test/Transforms/Inline/2007-06-25-WeakInline.ll
+++ b/llvm/test/Transforms/Inline/2007-06-25-WeakInline.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; 'bar' can be overridden at link-time, don't inline it.

diff  --git a/llvm/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll b/llvm/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll
index 2930aec3dbf53..70ff6e744b5e3 100644
--- a/llvm/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll
+++ b/llvm/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 declare i1 @extern()

diff  --git a/llvm/test/Transforms/Inline/2008-09-02-NoInline.ll b/llvm/test/Transforms/Inline/2008-09-02-NoInline.ll
index 902b53bfe9b28..c34e9a530fe5e 100644
--- a/llvm/test/Transforms/Inline/2008-09-02-NoInline.ll
+++ b/llvm/test/Transforms/Inline/2008-09-02-NoInline.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 define i32 @fn2() noinline {

diff  --git a/llvm/test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll b/llvm/test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll
index 2c4341c7e3552..c61419e612159 100644
--- a/llvm/test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll
+++ b/llvm/test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 ; Do not inline calls with variable-sized alloca.
 

diff  --git a/llvm/test/Transforms/Inline/2009-05-07-CallUsingSelfCrash.ll b/llvm/test/Transforms/Inline/2009-05-07-CallUsingSelfCrash.ll
index 0b6e1196141ef..13725924c0c27 100644
--- a/llvm/test/Transforms/Inline/2009-05-07-CallUsingSelfCrash.ll
+++ b/llvm/test/Transforms/Inline/2009-05-07-CallUsingSelfCrash.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output
+; RUN: opt < %s -passes=inline -disable-output
 ; PR4123
 	%struct.S0 = type <{ i32 }>
 	%struct.S1 = type <{ i8, i8, i8, i8, %struct.S0 }>

diff  --git a/llvm/test/Transforms/Inline/2010-05-12-ValueMap.ll b/llvm/test/Transforms/Inline/2010-05-12-ValueMap.ll
index f452907efd073..50edbee9dd516 100644
--- a/llvm/test/Transforms/Inline/2010-05-12-ValueMap.ll
+++ b/llvm/test/Transforms/Inline/2010-05-12-ValueMap.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -mergefunc -disable-output < %s
+; RUN: opt -passes='cgscc(inline),mergefunc' -disable-output < %s
 
 ; This tests for a bug where the inliner kept the functions in a ValueMap after
 ; it had completed and a ModulePass started to run. LLVM would crash deleting

diff  --git a/llvm/test/Transforms/Inline/AArch64/binop.ll b/llvm/test/Transforms/Inline/AArch64/binop.ll
index 051528991e463..c575bbcf08e17 100644
--- a/llvm/test/Transforms/Inline/AArch64/binop.ll
+++ b/llvm/test/Transforms/Inline/AArch64/binop.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -mtriple=aarch64--linux-gnu -S -o - < %s -inline-threshold=0 | FileCheck %s
+; RUN: opt -passes=inline -mtriple=aarch64--linux-gnu -S -o - < %s -inline-threshold=0 | FileCheck %s
 
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64--linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/AArch64/ext.ll b/llvm/test/Transforms/Inline/AArch64/ext.ll
index 04095c04ee869..6f0d89a95b73d 100644
--- a/llvm/test/Transforms/Inline/AArch64/ext.ll
+++ b/llvm/test/Transforms/Inline/AArch64/ext.ll
@@ -1,5 +1,5 @@
 ; REQUIRES: asserts
-; RUN: opt -inline -mtriple=aarch64--linux-gnu -S -debug-only=inline-cost < %s 2>&1 | FileCheck %s
+; RUN: opt -passes=inline -mtriple=aarch64--linux-gnu -S -debug-only=inline-cost < %s 2>&1 | FileCheck %s
 
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64--linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/AArch64/gep-cost.ll b/llvm/test/Transforms/Inline/AArch64/gep-cost.ll
index 7d191d37f1fc7..929d3c60cbd22 100644
--- a/llvm/test/Transforms/Inline/AArch64/gep-cost.ll
+++ b/llvm/test/Transforms/Inline/AArch64/gep-cost.ll
@@ -1,5 +1,5 @@
 ; REQUIRES: asserts
-; RUN: opt -inline -mtriple=aarch64--linux-gnu -mcpu=kryo -S -debug-only=inline-cost < %s 2>&1 | FileCheck %s
+; RUN: opt -passes=inline -mtriple=aarch64--linux-gnu -mcpu=kryo -S -debug-only=inline-cost < %s 2>&1 | FileCheck %s
 
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64--linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/AArch64/inline-target-attr.ll b/llvm/test/Transforms/Inline/AArch64/inline-target-attr.ll
index af87ff6e7404d..636f3c6600f8d 100644
--- a/llvm/test/Transforms/Inline/AArch64/inline-target-attr.ll
+++ b/llvm/test/Transforms/Inline/AArch64/inline-target-attr.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -mtriple=aarch64-unknown-linux-gnu -S -inline | FileCheck %s
+; RUN: opt < %s -mtriple=aarch64-unknown-linux-gnu -S -passes=inline | FileCheck %s
 ; RUN: opt < %s -mtriple=aarch64-unknown-linux-gnu -S -passes='cgscc(inline)' | FileCheck %s
 ; Check that we only inline when we have compatible target attributes.
 

diff  --git a/llvm/test/Transforms/Inline/AArch64/logical-and-or.ll b/llvm/test/Transforms/Inline/AArch64/logical-and-or.ll
index e92359715626d..124acc3ff99ff 100644
--- a/llvm/test/Transforms/Inline/AArch64/logical-and-or.ll
+++ b/llvm/test/Transforms/Inline/AArch64/logical-and-or.ll
@@ -1,5 +1,5 @@
 ; REQUIRES: asserts
-; RUN: opt -inline -mtriple=aarch64--linux-gnu -S -debug-only=inline-cost < %s 2>&1 | FileCheck %s
+; RUN: opt -passes=inline -mtriple=aarch64--linux-gnu -S -debug-only=inline-cost < %s 2>&1 | FileCheck %s
 
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64--linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/AArch64/phi.ll b/llvm/test/Transforms/Inline/AArch64/phi.ll
index 63999f58b2cdd..4439891e92542 100644
--- a/llvm/test/Transforms/Inline/AArch64/phi.ll
+++ b/llvm/test/Transforms/Inline/AArch64/phi.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -mtriple=aarch64--linux-gnu -S -o - < %s -inline-threshold=0 | FileCheck %s
+; RUN: opt -passes=inline -mtriple=aarch64--linux-gnu -S -o - < %s -inline-threshold=0 | FileCheck %s
 
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64--linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/AArch64/select.ll b/llvm/test/Transforms/Inline/AArch64/select.ll
index fd5929dab4eec..34d2bc8830f8f 100644
--- a/llvm/test/Transforms/Inline/AArch64/select.ll
+++ b/llvm/test/Transforms/Inline/AArch64/select.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -mtriple=aarch64--linux-gnu -S -o - < %s -inline-threshold=0 | FileCheck %s
+; RUN: opt -passes=inline -mtriple=aarch64--linux-gnu -S -o - < %s -inline-threshold=0 | FileCheck %s
 
 target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
 target triple = "aarch64--linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll b/llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll
index edf36d6e36d82..4e7074ec75dd6 100644
--- a/llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll
+++ b/llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -mtriple=aarch64-unknown-linux-gnu -mattr=+sme -S -inline | FileCheck %s
+; RUN: opt < %s -mtriple=aarch64-unknown-linux-gnu -mattr=+sme -S -passes=inline | FileCheck %s
 
 declare void @inlined_body() "aarch64_pstate_sm_compatible";
 

diff  --git a/llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll b/llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll
index 9dcfaf80019c9..bdc9e637fe90c 100644
--- a/llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll
+++ b/llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=aarch64-unknown-linux-gnu -mattr=+sme -S -inline < %s | FileCheck %s
+; RUN: opt -mtriple=aarch64-unknown-linux-gnu -mattr=+sme -S -passes=inline < %s | FileCheck %s
 
 declare void @inlined_body()
 

diff  --git a/llvm/test/Transforms/Inline/AArch64/sve-alloca-merge.ll b/llvm/test/Transforms/Inline/AArch64/sve-alloca-merge.ll
index c355388ed836f..3e9d55dd34db9 100644
--- a/llvm/test/Transforms/Inline/AArch64/sve-alloca-merge.ll
+++ b/llvm/test/Transforms/Inline/AArch64/sve-alloca-merge.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=aarch64--linux-gnu -mattr=+sve < %s -inline -S | FileCheck %s
+; RUN: opt -mtriple=aarch64--linux-gnu -mattr=+sve < %s -passes=inline -S | FileCheck %s
 
 define void @bar(<vscale x 2 x i64>* %a) {
 entry:

diff  --git a/llvm/test/Transforms/Inline/AArch64/switch.ll b/llvm/test/Transforms/Inline/AArch64/switch.ll
index 154956e2b7581..5012e14093328 100644
--- a/llvm/test/Transforms/Inline/AArch64/switch.ll
+++ b/llvm/test/Transforms/Inline/AArch64/switch.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -inline-threshold=20 -S -mtriple=aarch64-none-linux  | FileCheck %s
+; RUN: opt < %s -passes=inline -inline-threshold=20 -S -mtriple=aarch64-none-linux  | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=20 -S -mtriple=aarch64-none-linux | FileCheck %s
 
 define i32 @callee_range(i32 %a, i32* %P) {

diff  --git a/llvm/test/Transforms/Inline/AMDGPU/amdgpu-inline-alloca-argument.ll b/llvm/test/Transforms/Inline/AMDGPU/amdgpu-inline-alloca-argument.ll
index cf91d9328d13f..912ae73dd6172 100644
--- a/llvm/test/Transforms/Inline/AMDGPU/amdgpu-inline-alloca-argument.ll
+++ b/llvm/test/Transforms/Inline/AMDGPU/amdgpu-inline-alloca-argument.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=amdgcn--amdhsa -S -inline -inline-threshold=0 < %s | FileCheck %s
+; RUN: opt -mtriple=amdgcn--amdhsa -S -passes=inline -inline-threshold=0 < %s | FileCheck %s
 ; RUN: opt -mtriple=amdgcn--amdhsa -S -passes=inline -inline-threshold=0 < %s | FileCheck %s
 
 target datalayout = "e-p:64:64-p1:64:64-p2:32:32-p3:32:32-p4:64:64-p5:32:32-p6:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-S32-A5"

diff  --git a/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-dx10-clamp.ll b/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-dx10-clamp.ll
index f25904e66a481..88fc2a32afd8f 100644
--- a/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-dx10-clamp.ll
+++ b/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-dx10-clamp.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -inline < %s | FileCheck %s
+; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes='cgscc(inline)' < %s | FileCheck %s
 
 define i32 @func_default() #0 {

diff  --git a/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-ieee.ll b/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-ieee.ll
index cfb08a9ff73f3..64ab45d55c69d 100644
--- a/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-ieee.ll
+++ b/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-ieee.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -inline < %s | FileCheck %s
+; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes='cgscc(inline)' < %s | FileCheck %s
 
 define i32 @func_default() #0 {

diff  --git a/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-unsafe-fp-atomics.ll b/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-unsafe-fp-atomics.ll
index 7de6095294fe3..b867f942a84c4 100644
--- a/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-unsafe-fp-atomics.ll
+++ b/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-unsafe-fp-atomics.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --check-globals
-; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -inline < %s | FileCheck %s
+; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes='cgscc(inline)' < %s | FileCheck %s
 
 define i32 @func_default() #0 {

diff  --git a/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-vecbonus.ll b/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-vecbonus.ll
index bb0334ed18da5..d9f1adb61dff1 100644
--- a/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-vecbonus.ll
+++ b/llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-vecbonus.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -mtriple=amdgcn-unknown-amdhsa -inline --inline-threshold=1 < %s | FileCheck %s
+; RUN: opt -S -mtriple=amdgcn-unknown-amdhsa -passes=inline --inline-threshold=1 < %s | FileCheck %s
 ; RUN: opt -S -mtriple=amdgcn-unknown-amdhsa -passes=inline --inline-threshold=1 < %s | FileCheck %s
 
 define hidden <16 x i32> @div_vecbonus(<16 x i32> %x, <16 x i32> %y) {

diff  --git a/llvm/test/Transforms/Inline/AMDGPU/inline-denormal-fp-math.ll b/llvm/test/Transforms/Inline/AMDGPU/inline-denormal-fp-math.ll
index 7170cc8e49a86..ed63486edb01f 100644
--- a/llvm/test/Transforms/Inline/AMDGPU/inline-denormal-fp-math.ll
+++ b/llvm/test/Transforms/Inline/AMDGPU/inline-denormal-fp-math.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -inline < %s | FileCheck %s
+; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes='cgscc(inline)' < %s | FileCheck %s
 
 define i32 @func_default() {

diff  --git a/llvm/test/Transforms/Inline/AMDGPU/inline-hint.ll b/llvm/test/Transforms/Inline/AMDGPU/inline-hint.ll
index d82c5814d549d..2531dd2f4d4b2 100644
--- a/llvm/test/Transforms/Inline/AMDGPU/inline-hint.ll
+++ b/llvm/test/Transforms/Inline/AMDGPU/inline-hint.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -mtriple=amdgcn-unknown-amdhsa -inline --inline-threshold=1 --inlinehint-threshold=4 < %s | FileCheck %s
+; RUN: opt -S -mtriple=amdgcn-unknown-amdhsa -passes=inline --inline-threshold=1 --inlinehint-threshold=4 < %s | FileCheck %s
 ; RUN: opt -S -mtriple=amdgcn-unknown-amdhsa -passes=inline --inline-threshold=1 --inlinehint-threshold=4 < %s | FileCheck %s
 
 define hidden <16 x i32> @div_hint(<16 x i32> %x, <16 x i32> %y) #0 {

diff  --git a/llvm/test/Transforms/Inline/AMDGPU/inline-target-cpu.ll b/llvm/test/Transforms/Inline/AMDGPU/inline-target-cpu.ll
index fb0e19f888276..f860b039ac119 100644
--- a/llvm/test/Transforms/Inline/AMDGPU/inline-target-cpu.ll
+++ b/llvm/test/Transforms/Inline/AMDGPU/inline-target-cpu.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -inline < %s | FileCheck %s
+; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes='cgscc(inline)' < %s | FileCheck %s
 
 ; CHECK-LABEL: @func_no_target_cpu(

diff  --git a/llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-sram-ecc.ll b/llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-sram-ecc.ll
index d7aa65d753c0b..825053e9f09cc 100644
--- a/llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-sram-ecc.ll
+++ b/llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-sram-ecc.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -inline < %s | FileCheck %s
+; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes='cgscc(inline)' < %s | FileCheck %s
 
 ; sram-ecc can be safely ignored when inlining, since no intrinisics

diff  --git a/llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-xnack.ll b/llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-xnack.ll
index 3b0cfb54cea09..36fbab07ac974 100644
--- a/llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-xnack.ll
+++ b/llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-xnack.ll
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -inline < %s | FileCheck %s
+; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -mtriple=amdgcn-amd-amdhsa -S -passes='cgscc(inline)' < %s | FileCheck %s
 
 define i32 @func_default() #0 {

diff  --git a/llvm/test/Transforms/Inline/ARM/inline-fp.ll b/llvm/test/Transforms/Inline/ARM/inline-fp.ll
index 0f05ec6f971e0..200950afd29bb 100644
--- a/llvm/test/Transforms/Inline/ARM/inline-fp.ll
+++ b/llvm/test/Transforms/Inline/ARM/inline-fp.ll
@@ -1,6 +1,6 @@
-; RUN: opt -S -inline -mtriple=arm-eabi -pass-remarks=.* -pass-remarks-missed=.* < %s 2>&1 | FileCheck %s -check-prefix=NOFP
-; RUN: opt -S -inline -mtriple=arm-eabi -mattr=+vfp2 -pass-remarks=.* -pass-remarks-missed=.* < %s 2>&1 | FileCheck %s -check-prefix=FULLFP
-; RUN: opt -S -inline -mtriple=arm-eabi -mattr=+vfp2,-fp64 -pass-remarks=.* -pass-remarks-missed=.* < %s 2>&1 | FileCheck %s -check-prefix=SINGLEFP
+; RUN: opt -S -passes=inline -mtriple=arm-eabi -pass-remarks=.* -pass-remarks-missed=.* < %s 2>&1 | FileCheck %s -check-prefix=NOFP
+; RUN: opt -S -passes=inline -mtriple=arm-eabi -mattr=+vfp2 -pass-remarks=.* -pass-remarks-missed=.* < %s 2>&1 | FileCheck %s -check-prefix=FULLFP
+; RUN: opt -S -passes=inline -mtriple=arm-eabi -mattr=+vfp2,-fp64 -pass-remarks=.* -pass-remarks-missed=.* < %s 2>&1 | FileCheck %s -check-prefix=SINGLEFP
 ; Make sure that soft float implementations are calculated as being more expensive
 ; to the inliner.
 

diff  --git a/llvm/test/Transforms/Inline/ARM/inline-target-attr.ll b/llvm/test/Transforms/Inline/ARM/inline-target-attr.ll
index 5bbecd2035288..444b736fa03f5 100644
--- a/llvm/test/Transforms/Inline/ARM/inline-target-attr.ll
+++ b/llvm/test/Transforms/Inline/ARM/inline-target-attr.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -mtriple=arm-unknown-linux-gnu -S -inline | FileCheck %s
+; RUN: opt < %s -mtriple=arm-unknown-linux-gnu -S -passes=inline | FileCheck %s
 ; RUN: opt < %s -mtriple=arm-unknown-linux-gnu -S -passes='cgscc(inline)' | FileCheck %s
 ; Check that we only inline when we have compatible target attributes.
 ; ARM has implemented a target attribute that will verify that the attribute

diff  --git a/llvm/test/Transforms/Inline/ARM/loop-add.ll b/llvm/test/Transforms/Inline/ARM/loop-add.ll
index a4717bc95b78d..de89d1468e3b3 100644
--- a/llvm/test/Transforms/Inline/ARM/loop-add.ll
+++ b/llvm/test/Transforms/Inline/ARM/loop-add.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline %s -S | FileCheck %s
+; RUN: opt -passes=inline %s -S | FileCheck %s
 
 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
 target triple = "thumbv7m-arm-none-eabi"

diff  --git a/llvm/test/Transforms/Inline/ARM/loop-memcpy.ll b/llvm/test/Transforms/Inline/ARM/loop-memcpy.ll
index 3b3625c602796..aea97fd74ca0a 100644
--- a/llvm/test/Transforms/Inline/ARM/loop-memcpy.ll
+++ b/llvm/test/Transforms/Inline/ARM/loop-memcpy.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline %s -S | FileCheck %s
+; RUN: opt -passes=inline %s -S | FileCheck %s
 
 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
 target triple = "thumbv7m-arm-none-eabi"

diff  --git a/llvm/test/Transforms/Inline/ARM/loop-noinline.ll b/llvm/test/Transforms/Inline/ARM/loop-noinline.ll
index 8438d16b03e85..72e2b3f42ea2b 100644
--- a/llvm/test/Transforms/Inline/ARM/loop-noinline.ll
+++ b/llvm/test/Transforms/Inline/ARM/loop-noinline.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline %s -S | FileCheck %s
+; RUN: opt -passes=inline %s -S | FileCheck %s
 
 target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64"
 target triple = "thumbv7m-arm-none-eabi"

diff  --git a/llvm/test/Transforms/Inline/PR4909.ll b/llvm/test/Transforms/Inline/PR4909.ll
index 86b005c8a152e..ccc5bfd5d1a8f 100644
--- a/llvm/test/Transforms/Inline/PR4909.ll
+++ b/llvm/test/Transforms/Inline/PR4909.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -disable-output
+; RUN: opt < %s -passes=partial-inliner -disable-output
 ; RUN: opt < %s -passes=partial-inliner -disable-output
 
 define i32 @f() {

diff  --git a/llvm/test/Transforms/Inline/PowerPC/ext.ll b/llvm/test/Transforms/Inline/PowerPC/ext.ll
index f7a409467b2c0..989b637ab1e8f 100644
--- a/llvm/test/Transforms/Inline/PowerPC/ext.ll
+++ b/llvm/test/Transforms/Inline/PowerPC/ext.ll
@@ -1,5 +1,5 @@
 ; REQUIRES: asserts
-; RUN: opt -inline -S -debug-only=inline-cost < %s 2>&1 | FileCheck %s
+; RUN: opt -passes=inline -S -debug-only=inline-cost < %s 2>&1 | FileCheck %s
 
 target datalayout = "E-m:e-i64:64-n32:64"
 target triple = "powerpc64le-ibm-linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/WebAssembly/inline-target-features.ll b/llvm/test/Transforms/Inline/WebAssembly/inline-target-features.ll
index f828f7afb5961..5b8eabc717d8a 100644
--- a/llvm/test/Transforms/Inline/WebAssembly/inline-target-features.ll
+++ b/llvm/test/Transforms/Inline/WebAssembly/inline-target-features.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -mtriple=wasm32-unknown-unknown -S -inline | FileCheck %s
+; RUN: opt < %s -mtriple=wasm32-unknown-unknown -S -passes=inline | FileCheck %s
 
 ; Check that having functions can be inlined into callers only when
 ; they have a subset of the caller's features.

diff  --git a/llvm/test/Transforms/Inline/X86/call-abi-compatibility.ll b/llvm/test/Transforms/Inline/X86/call-abi-compatibility.ll
index d5a3aa1aa9e39..3a30980fe31bd 100644
--- a/llvm/test/Transforms/Inline/X86/call-abi-compatibility.ll
+++ b/llvm/test/Transforms/Inline/X86/call-abi-compatibility.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
-; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -S -inline | FileCheck %s
+; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -S -passes=inline | FileCheck %s
 
 ; Test for PR52660.
 

diff  --git a/llvm/test/Transforms/Inline/X86/ext.ll b/llvm/test/Transforms/Inline/X86/ext.ll
index bffda38527998..0a3b2b6a61971 100644
--- a/llvm/test/Transforms/Inline/X86/ext.ll
+++ b/llvm/test/Transforms/Inline/X86/ext.ll
@@ -1,5 +1,5 @@
 ; REQUIRES: asserts
-; RUN: opt -inline -mtriple=x86_64-unknown-unknown -S -debug-only=inline-cost < %s 2>&1 | FileCheck %s
+; RUN: opt -passes=inline -mtriple=x86_64-unknown-unknown -S -debug-only=inline-cost < %s 2>&1 | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-unknown"

diff  --git a/llvm/test/Transforms/Inline/X86/extractvalue.ll b/llvm/test/Transforms/Inline/X86/extractvalue.ll
index 8661c532246a6..ccd58c8701281 100644
--- a/llvm/test/Transforms/Inline/X86/extractvalue.ll
+++ b/llvm/test/Transforms/Inline/X86/extractvalue.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -inline-threshold=0 -debug-only=inline-cost -print-instruction-comments -S -mtriple=x86_64-unknown-linux-gnu 2>&1 | FileCheck %s
+; RUN: opt < %s -passes=inline -inline-threshold=0 -debug-only=inline-cost -print-instruction-comments -S -mtriple=x86_64-unknown-linux-gnu 2>&1 | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=0 -debug-only=inline-cost -print-instruction-comments -S -mtriple=x86_64-unknown-linux-gnu 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 

diff  --git a/llvm/test/Transforms/Inline/X86/inline-target-attr.ll b/llvm/test/Transforms/Inline/X86/inline-target-attr.ll
index d0846352ff19b..528e8a5cb2e60 100644
--- a/llvm/test/Transforms/Inline/X86/inline-target-attr.ll
+++ b/llvm/test/Transforms/Inline/X86/inline-target-attr.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -S -inline | FileCheck %s
+; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -S -passes=inline | FileCheck %s
 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -S -passes='cgscc(inline)' | FileCheck %s
 ; Check that we only inline when we have compatible target attributes.
 ; X86 has implemented a target attribute that will verify that the attribute

diff  --git a/llvm/test/Transforms/Inline/X86/inline-target-cpu-i686.ll b/llvm/test/Transforms/Inline/X86/inline-target-cpu-i686.ll
index a0325441ed91e..bd05cffcaa8b7 100644
--- a/llvm/test/Transforms/Inline/X86/inline-target-cpu-i686.ll
+++ b/llvm/test/Transforms/Inline/X86/inline-target-cpu-i686.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -mtriple=i686-unknown-unknown -S -inline | FileCheck %s
+; RUN: opt < %s -mtriple=i686-unknown-unknown -S -passes=inline | FileCheck %s
 
 define i32 @func_target_cpu_nocona() #0 {
   ret i32 0

diff  --git a/llvm/test/Transforms/Inline/X86/inline-target-cpu-x86_64.ll b/llvm/test/Transforms/Inline/X86/inline-target-cpu-x86_64.ll
index fa04a77d4a510..b0a145d54cf59 100644
--- a/llvm/test/Transforms/Inline/X86/inline-target-cpu-x86_64.ll
+++ b/llvm/test/Transforms/Inline/X86/inline-target-cpu-x86_64.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -mtriple=x86_64-unknown-unknown -S -inline | FileCheck %s
+; RUN: opt < %s -mtriple=x86_64-unknown-unknown -S -passes=inline | FileCheck %s
 
 define i32 @func_target_cpu_base() #0 {
   ret i32 0

diff  --git a/llvm/test/Transforms/Inline/X86/insertvalue.ll b/llvm/test/Transforms/Inline/X86/insertvalue.ll
index ce08c9bda36c0..529f9475678c3 100644
--- a/llvm/test/Transforms/Inline/X86/insertvalue.ll
+++ b/llvm/test/Transforms/Inline/X86/insertvalue.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -inline-threshold=0 -debug-only=inline-cost -print-instruction-comments -S -mtriple=x86_64-unknown-linux-gnu 2>&1 | FileCheck %s
+; RUN: opt < %s -passes=inline -inline-threshold=0 -debug-only=inline-cost -print-instruction-comments -S -mtriple=x86_64-unknown-linux-gnu 2>&1 | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=0 -debug-only=inline-cost -print-instruction-comments -S -mtriple=x86_64-unknown-linux-gnu 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 

diff  --git a/llvm/test/Transforms/Inline/X86/switch.ll b/llvm/test/Transforms/Inline/X86/switch.ll
index 5565c7aba5036..76a34d40d98a5 100644
--- a/llvm/test/Transforms/Inline/X86/switch.ll
+++ b/llvm/test/Transforms/Inline/X86/switch.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -inline-threshold=1 -S -mtriple=x86_64-unknown-linux-gnu  | FileCheck %s
+; RUN: opt < %s -passes=inline -inline-threshold=1 -S -mtriple=x86_64-unknown-linux-gnu  | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=1 -S -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
 
 define i32 @callee_range(i32 %a, i32* %P) {

diff  --git a/llvm/test/Transforms/Inline/align.ll b/llvm/test/Transforms/Inline/align.ll
index f3a5184564850..bd2e9183ac924 100644
--- a/llvm/test/Transforms/Inline/align.ll
+++ b/llvm/test/Transforms/Inline/align.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
-; RUN: opt -inline -preserve-alignment-assumptions-during-inlining -S < %s | FileCheck %s
+; RUN: opt -passes=inline -preserve-alignment-assumptions-during-inlining -S < %s | FileCheck %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 

diff  --git a/llvm/test/Transforms/Inline/alloca-bonus.ll b/llvm/test/Transforms/Inline/alloca-bonus.ll
index c5c2ce11cc5b0..81e7089a39508 100644
--- a/llvm/test/Transforms/Inline/alloca-bonus.ll
+++ b/llvm/test/Transforms/Inline/alloca-bonus.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline < %s -S -o - -inline-threshold=8 | FileCheck %s
+; RUN: opt -passes=inline < %s -S -o - -inline-threshold=8 | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' < %s -S -o - -inline-threshold=8 | FileCheck %s
 
 target datalayout = "p:32:32"

diff  --git a/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll b/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll
index 1dbe996343b2d..61e2a7d97cce0 100644
--- a/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll
+++ b/llvm/test/Transforms/Inline/alloca-dbgdeclare.ll
@@ -1,17 +1,17 @@
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 ; struct A {
 ;   int arg0;
 ;   double arg1[2];
 ; } a, b;
-;  
+;
 ; void fn3(A p1) {
 ;   if (p1.arg0)
 ;     a = p1;
 ; }
-;  
+;
 ; void fn4() { fn3(b); }
-;  
+;
 ; void fn5() {
 ;   while (1)
 ;     fn4();

diff  --git a/llvm/test/Transforms/Inline/alloca-in-scc.ll b/llvm/test/Transforms/Inline/alloca-in-scc.ll
index 92649a6e07344..71b6ba8f57327 100644
--- a/llvm/test/Transforms/Inline/alloca-in-scc.ll
+++ b/llvm/test/Transforms/Inline/alloca-in-scc.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline | llvm-dis
+; RUN: opt < %s -passes=inline | llvm-dis
 
 target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
 target triple = "i386-apple-darwin10.0"
@@ -12,8 +12,8 @@ entry:
 define internal fastcc void @a() nounwind ssp {
 entry:
   %al = alloca [3 x i32], align 4
-  %0 = getelementptr inbounds [3 x i32], [3 x i32]* %al, i32 0, i32 2 
-  
+  %0 = getelementptr inbounds [3 x i32], [3 x i32]* %al, i32 0, i32 2
+
   call fastcc void @c() nounwind
   unreachable
 }

diff  --git a/llvm/test/Transforms/Inline/alloca_test.ll b/llvm/test/Transforms/Inline/alloca_test.ll
index cd0713955a2ee..5712ecc3a9ffd 100644
--- a/llvm/test/Transforms/Inline/alloca_test.ll
+++ b/llvm/test/Transforms/Inline/alloca_test.ll
@@ -2,7 +2,7 @@
 ; This test ensures that alloca instructions in the entry block for an inlined
 ; function are moved to the top of the function they are inlined into.
 ;
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -S -passes='cgscc(inline)' < %s | FileCheck %s
 
 define i32 @func(i32 %i) {

diff  --git a/llvm/test/Transforms/Inline/arg-attr-propagation.ll b/llvm/test/Transforms/Inline/arg-attr-propagation.ll
index 10dc001a30152..3cacda9357655 100644
--- a/llvm/test/Transforms/Inline/arg-attr-propagation.ll
+++ b/llvm/test/Transforms/Inline/arg-attr-propagation.ll
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
-; RUN: opt -inline -S < %s | FileCheck --check-prefixes=CHECK,NO_ASSUME %s
-; RUN: opt -inline -S --enable-knowledge-retention < %s | FileCheck %s --check-prefixes=CHECK,USE_ASSUME
+; RUN: opt -passes=inline -S < %s | FileCheck --check-prefixes=CHECK,NO_ASSUME %s
+; RUN: opt -passes=inline -S --enable-knowledge-retention < %s | FileCheck %s --check-prefixes=CHECK,USE_ASSUME
 
 ; The callee guarantees that the pointer argument is nonnull and dereferenceable.
 ; That information should transfer to the caller.

diff  --git a/llvm/test/Transforms/Inline/array-alloca.ll b/llvm/test/Transforms/Inline/array-alloca.ll
index b71dafee00fe5..8abcde0dea7ff 100644
--- a/llvm/test/Transforms/Inline/array-alloca.ll
+++ b/llvm/test/Transforms/Inline/array-alloca.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 %struct.A = type { i32 }
 

diff  --git a/llvm/test/Transforms/Inline/attributes.ll b/llvm/test/Transforms/Inline/attributes.ll
index e668013926bfa..6595f54bda980 100644
--- a/llvm/test/Transforms/Inline/attributes.ll
+++ b/llvm/test/Transforms/Inline/attributes.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
 
@@ -347,7 +347,7 @@ define i32 @test_no-implicit-float3(i32 %i) noimplicitfloat {
 ; CHECK-NEXT: ret i32
 }
 
-; Check that no-jump-tables flag propagates from inlined callee to caller 
+; Check that no-jump-tables flag propagates from inlined callee to caller
 
 define i32 @no-use-jump-tables_callee0(i32 %i) {
   ret i32 %i

diff  --git a/llvm/test/Transforms/Inline/blockaddress.ll b/llvm/test/Transforms/Inline/blockaddress.ll
index 9760667865814..37419aff2890c 100644
--- a/llvm/test/Transforms/Inline/blockaddress.ll
+++ b/llvm/test/Transforms/Inline/blockaddress.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 ; PR10162
 

diff  --git a/llvm/test/Transforms/Inline/byref-align.ll b/llvm/test/Transforms/Inline/byref-align.ll
index 4a94bd8bfe13a..92b16398ba0f3 100644
--- a/llvm/test/Transforms/Inline/byref-align.ll
+++ b/llvm/test/Transforms/Inline/byref-align.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
-; RUN: opt -inline -preserve-alignment-assumptions-during-inlining -S < %s | FileCheck %s
+; RUN: opt -passes=inline -preserve-alignment-assumptions-during-inlining -S < %s | FileCheck %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 

diff  --git a/llvm/test/Transforms/Inline/byval-align.ll b/llvm/test/Transforms/Inline/byval-align.ll
index 47887606e901f..045b17c1572fe 100644
--- a/llvm/test/Transforms/Inline/byval-align.ll
+++ b/llvm/test/Transforms/Inline/byval-align.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
-; RUN: opt -inline -preserve-alignment-assumptions-during-inlining -S < %s | FileCheck %s
+; RUN: opt -passes=inline -preserve-alignment-assumptions-during-inlining -S < %s | FileCheck %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 

diff  --git a/llvm/test/Transforms/Inline/byval-tail-call.ll b/llvm/test/Transforms/Inline/byval-tail-call.ll
index c2b814cfb7ffd..4d6ef5b97dbb4 100644
--- a/llvm/test/Transforms/Inline/byval-tail-call.ll
+++ b/llvm/test/Transforms/Inline/byval-tail-call.ll
@@ -1,5 +1,4 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -tailcallelim -inline -instcombine -dse -S | FileCheck %s
 ; RUN: opt < %s -aa-pipeline=basic-aa -passes='function(tailcallelim),cgscc(inline,function(instcombine,dse))' -S | FileCheck %s
 ; PR7272
 

diff  --git a/llvm/test/Transforms/Inline/byval.ll b/llvm/test/Transforms/Inline/byval.ll
index ea8aef323317a..0fd6ada91d477 100644
--- a/llvm/test/Transforms/Inline/byval.ll
+++ b/llvm/test/Transforms/Inline/byval.ll
@@ -1,10 +1,10 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; The verifier does catch problems with inlining of byval arguments that has a
 ; 
diff erent address space compared to the alloca. But running instcombine
 ; after inline used to trigger asserts unless we disallow such inlining.
-; RUN: opt < %s -inline -instcombine -disable-output 2>/dev/null
+; RUN: opt < %s  -passes=inline,instcombine -disable-output 2>/dev/null
 
 target datalayout = "p:32:32-p1:64:64-p2:16:16-n16:32:64"
 

diff  --git a/llvm/test/Transforms/Inline/byval_lifetime.ll b/llvm/test/Transforms/Inline/byval_lifetime.ll
index 3d9b2c27660d1..c6f7f82c03d8e 100644
--- a/llvm/test/Transforms/Inline/byval_lifetime.ll
+++ b/llvm/test/Transforms/Inline/byval_lifetime.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 
 ; By inlining foo, an alloca is created in main to hold the byval argument, so

diff  --git a/llvm/test/Transforms/Inline/call-site-attrs.ll b/llvm/test/Transforms/Inline/call-site-attrs.ll
index 50af344a4c71b..19b062e2b770d 100644
--- a/llvm/test/Transforms/Inline/call-site-attrs.ll
+++ b/llvm/test/Transforms/Inline/call-site-attrs.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; Always prefer call site attribute over function attribute

diff  --git a/llvm/test/Transforms/Inline/callbr.ll b/llvm/test/Transforms/Inline/callbr.ll
index 383f1f0471117..e31f0380ceb95 100644
--- a/llvm/test/Transforms/Inline/callbr.ll
+++ b/llvm/test/Transforms/Inline/callbr.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 ; RUN: opt -passes='module-inline' -S < %s | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/callgraph-update.ll b/llvm/test/Transforms/Inline/callgraph-update.ll
index 1a1799e5cfb4e..94a2b2c59e92d 100644
--- a/llvm/test/Transforms/Inline/callgraph-update.ll
+++ b/llvm/test/Transforms/Inline/callgraph-update.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -loop-rotate -verify-dom-info -verify-loop-info -disable-output
+; RUN: opt < %s  -passes=inline,loop-rotate -verify-dom-info -verify-loop-info -disable-output
 ; PR3601
 declare void @solve()
 

diff  --git a/llvm/test/Transforms/Inline/casts.ll b/llvm/test/Transforms/Inline/casts.ll
index 88fc8042ea558..b4e015040ca41 100644
--- a/llvm/test/Transforms/Inline/casts.ll
+++ b/llvm/test/Transforms/Inline/casts.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 ; RUN: opt < %s -passes='module-inline' -S | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/cfg_preserve_test.ll b/llvm/test/Transforms/Inline/cfg_preserve_test.ll
index c5b6b1bffc1d9..103bc0d0a1c81 100644
--- a/llvm/test/Transforms/Inline/cfg_preserve_test.ll
+++ b/llvm/test/Transforms/Inline/cfg_preserve_test.ll
@@ -1,6 +1,6 @@
 ; This test ensures that inlining an "empty" function does not destroy the CFG
 ;
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 
 define i32 @func(i32 %i) {
   ret i32 %i

diff  --git a/llvm/test/Transforms/Inline/comdat-ipo.ll b/llvm/test/Transforms/Inline/comdat-ipo.ll
index a840a0e0e76fd..0551068bb9b93 100644
--- a/llvm/test/Transforms/Inline/comdat-ipo.ll
+++ b/llvm/test/Transforms/Inline/comdat-ipo.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 ; RUN: opt -passes='module-inline' -S < %s | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/crash-lifetime-marker.ll b/llvm/test/Transforms/Inline/crash-lifetime-marker.ll
index 9448353322691..daa24029f0141 100644
--- a/llvm/test/Transforms/Inline/crash-lifetime-marker.ll
+++ b/llvm/test/Transforms/Inline/crash-lifetime-marker.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 ; RUN: opt < %s -passes='module-inline' -S | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/debug-info-duplicate-calls.ll b/llvm/test/Transforms/Inline/debug-info-duplicate-calls.ll
index ae845e71f7641..a4c41341df951 100644
--- a/llvm/test/Transforms/Inline/debug-info-duplicate-calls.ll
+++ b/llvm/test/Transforms/Inline/debug-info-duplicate-calls.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -always-inline -S | FileCheck %s
+; RUN: opt < %s -passes=always-inline -S | FileCheck %s
 ; RUN: opt -passes='always-inline' -S < %s | FileCheck %s
 
 ; Original input generated from clang -emit-llvm -S -c -mllvm -disable-llvm-optzns

diff  --git a/llvm/test/Transforms/Inline/debug-invoke.ll b/llvm/test/Transforms/Inline/debug-invoke.ll
index a1c27b00ea59c..9867bb799ce7b 100644
--- a/llvm/test/Transforms/Inline/debug-invoke.ll
+++ b/llvm/test/Transforms/Inline/debug-invoke.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -always-inline -S | FileCheck %s
+; RUN: opt < %s -passes=always-inline -S | FileCheck %s
 
 ; Test that the debug location is preserved when rewriting an inlined call as an invoke
 

diff  --git a/llvm/test/Transforms/Inline/deopt-bundles.ll b/llvm/test/Transforms/Inline/deopt-bundles.ll
index 3e3c52f7d2d59..57175fabf0df4 100644
--- a/llvm/test/Transforms/Inline/deopt-bundles.ll
+++ b/llvm/test/Transforms/Inline/deopt-bundles.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -always-inline < %s | FileCheck %s
+; RUN: opt -S -passes=always-inline < %s | FileCheck %s
 
 declare void @f()
 declare i32 @g()

diff  --git a/llvm/test/Transforms/Inline/deoptimize-intrinsic-attrs.ll b/llvm/test/Transforms/Inline/deoptimize-intrinsic-attrs.ll
index fa92ce2fda539..4d4772294d7c4 100644
--- a/llvm/test/Transforms/Inline/deoptimize-intrinsic-attrs.ll
+++ b/llvm/test/Transforms/Inline/deoptimize-intrinsic-attrs.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -always-inline < %s | FileCheck %s
+; RUN: opt -S -passes=always-inline < %s | FileCheck %s
 
 declare cc42 i32 @llvm.experimental.deoptimize.i32(...)
 
@@ -19,4 +19,4 @@ define void @caller_with_coldcc() {
 attributes #0 = { "deopt-lowering"="live-in" }
 
 ; CHECK: declare cc42 void @llvm.experimental.deoptimize.isVoid(...)
-; CHECK: attributes #1 = { "deopt-lowering"="live-in" }
\ No newline at end of file
+; CHECK: attributes #1 = { "deopt-lowering"="live-in" }

diff  --git a/llvm/test/Transforms/Inline/deoptimize-intrinsic-cconv.ll b/llvm/test/Transforms/Inline/deoptimize-intrinsic-cconv.ll
index 4e2c3fe4786e3..60f5697e24583 100644
--- a/llvm/test/Transforms/Inline/deoptimize-intrinsic-cconv.ll
+++ b/llvm/test/Transforms/Inline/deoptimize-intrinsic-cconv.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -always-inline < %s | FileCheck %s
+; RUN: opt -S -passes=always-inline < %s | FileCheck %s
 
 declare cc42 i32 @llvm.experimental.deoptimize.i32(...)
 

diff  --git a/llvm/test/Transforms/Inline/deoptimize-intrinsic.ll b/llvm/test/Transforms/Inline/deoptimize-intrinsic.ll
index 3d84bfc807691..30c5e48f19a07 100644
--- a/llvm/test/Transforms/Inline/deoptimize-intrinsic.ll
+++ b/llvm/test/Transforms/Inline/deoptimize-intrinsic.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -always-inline < %s | FileCheck %s
+; RUN: opt -S -passes=always-inline < %s | FileCheck %s
 
 declare i8 @llvm.experimental.deoptimize.i8(...)
 declare i32 @llvm.experimental.deoptimize.i32(...)

diff  --git a/llvm/test/Transforms/Inline/dynamic-alloca-simplified-large.ll b/llvm/test/Transforms/Inline/dynamic-alloca-simplified-large.ll
index fd5b40cb876ca..5579909bef67f 100644
--- a/llvm/test/Transforms/Inline/dynamic-alloca-simplified-large.ll
+++ b/llvm/test/Transforms/Inline/dynamic-alloca-simplified-large.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -inline < %s -S -o - | FileCheck %s
+; RUN: opt -passes=inline < %s -S -o - | FileCheck %s
 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-apple-macosx10.15.0"
 

diff  --git a/llvm/test/Transforms/Inline/dynamic_alloca_test.ll b/llvm/test/Transforms/Inline/dynamic_alloca_test.ll
index 1c17c7cd9748b..2716d433d8724 100644
--- a/llvm/test/Transforms/Inline/dynamic_alloca_test.ll
+++ b/llvm/test/Transforms/Inline/dynamic_alloca_test.ll
@@ -3,7 +3,7 @@
 ; Functions with dynamic allocas can only be inlined into functions that
 ; already have dynamic allocas.
 
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ;
 ; FIXME: This test is xfailed because the inline cost rewrite disabled *all*
 ; inlining of functions which contain a dynamic alloca. It should be re-enabled

diff  --git a/llvm/test/Transforms/Inline/ephemeral.ll b/llvm/test/Transforms/Inline/ephemeral.ll
index b25d1e08148bd..11edfbb7528cc 100644
--- a/llvm/test/Transforms/Inline/ephemeral.ll
+++ b/llvm/test/Transforms/Inline/ephemeral.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -inline %s -debug-only=inline-cost 2>&1 | FileCheck %s
+; RUN: opt -S -passes=inline %s -debug-only=inline-cost 2>&1 | FileCheck %s
 ; REQUIRES: asserts
 
 @a = global i32 4

diff  --git a/llvm/test/Transforms/Inline/exponential-deferred-inlining.ll b/llvm/test/Transforms/Inline/exponential-deferred-inlining.ll
index 3cb347dd03d29..42697c4567c29 100644
--- a/llvm/test/Transforms/Inline/exponential-deferred-inlining.ll
+++ b/llvm/test/Transforms/Inline/exponential-deferred-inlining.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 
 declare void @foo()
 

diff  --git a/llvm/test/Transforms/Inline/externally_available.ll b/llvm/test/Transforms/Inline/externally_available.ll
index 0785dabf84683..76e030a28e175 100644
--- a/llvm/test/Transforms/Inline/externally_available.ll
+++ b/llvm/test/Transforms/Inline/externally_available.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 
 define available_externally i32 @test_function() {
 ; CHECK-NOT: @test_function

diff  --git a/llvm/test/Transforms/Inline/frameescape.ll b/llvm/test/Transforms/Inline/frameescape.ll
index ca96a334fa5ff..7d0f370e574ba 100644
--- a/llvm/test/Transforms/Inline/frameescape.ll
+++ b/llvm/test/Transforms/Inline/frameescape.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 ; RUN: opt -passes='module-inline' -S < %s | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/guard-intrinsic.ll b/llvm/test/Transforms/Inline/guard-intrinsic.ll
index 76d683df6e9b9..467e81c59beb6 100644
--- a/llvm/test/Transforms/Inline/guard-intrinsic.ll
+++ b/llvm/test/Transforms/Inline/guard-intrinsic.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -always-inline < %s | FileCheck %s
+; RUN: opt -S -passes=always-inline < %s | FileCheck %s
 
 declare void @llvm.experimental.guard(i1, ...)
 

diff  --git a/llvm/test/Transforms/Inline/ignore-debug-info.ll b/llvm/test/Transforms/Inline/ignore-debug-info.ll
index 60e96777d93ee..7ccf7e86bac2a 100644
--- a/llvm/test/Transforms/Inline/ignore-debug-info.ll
+++ b/llvm/test/Transforms/Inline/ignore-debug-info.ll
@@ -1,5 +1,5 @@
-; RUN: opt < %s -S -inline -inline-threshold=2 | FileCheck %s
-; RUN: opt < %s -S -strip-debug -inline -inline-threshold=2 | FileCheck %s
+; RUN: opt < %s -S -passes=inline -inline-threshold=2 | FileCheck %s
+; RUN: opt < %s -S -strip-debug -passes=inline -inline-threshold=2 | FileCheck %s
 ; RUN: opt < %s -S -passes='cgscc(inline)' -inline-threshold=2 | FileCheck %s
 ; RUN: opt < %s -S -strip-debug -passes='cgscc(inline)' -inline-threshold=2 | FileCheck %s
 ;

diff  --git a/llvm/test/Transforms/Inline/inalloca-not-static.ll b/llvm/test/Transforms/Inline/inalloca-not-static.ll
index 1a6dd75a01781..a5d7f55065ff6 100644
--- a/llvm/test/Transforms/Inline/inalloca-not-static.ll
+++ b/llvm/test/Transforms/Inline/inalloca-not-static.ll
@@ -1,4 +1,4 @@
-; RUN: opt -always-inline -S < %s | FileCheck %s
+; RUN: opt -passes=always-inline -S < %s | FileCheck %s
 ; RUN: opt -passes=always-inline -S < %s | FileCheck %s
 
 ; We used to misclassify inalloca as a static alloca in the inliner. This only

diff  --git a/llvm/test/Transforms/Inline/infinite-loop-two-predecessors.ll b/llvm/test/Transforms/Inline/infinite-loop-two-predecessors.ll
index aa07315eb081a..e41d37d87ee31 100644
--- a/llvm/test/Transforms/Inline/infinite-loop-two-predecessors.ll
+++ b/llvm/test/Transforms/Inline/infinite-loop-two-predecessors.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -o - %s -inline | FileCheck %s
+; RUN: opt -S -o - %s -passes=inline | FileCheck %s
 
 define void @f1() {
 bb.0:

diff  --git a/llvm/test/Transforms/Inline/inline-assume.ll b/llvm/test/Transforms/Inline/inline-assume.ll
index 42b3debe3d388..42952bcb655f9 100644
--- a/llvm/test/Transforms/Inline/inline-assume.ll
+++ b/llvm/test/Transforms/Inline/inline-assume.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S -o - < %s | FileCheck %s
+; RUN: opt -passes=inline -S -o - < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 ; RUN: opt -passes='module-inline' -S < %s | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/inline-brunch-funnel.ll b/llvm/test/Transforms/Inline/inline-brunch-funnel.ll
index 567abc6b94306..263f4040f3623 100644
--- a/llvm/test/Transforms/Inline/inline-brunch-funnel.ll
+++ b/llvm/test/Transforms/Inline/inline-brunch-funnel.ll
@@ -1,5 +1,5 @@
 ; Test that inliner skips @llvm.icall.branch.funnel
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 
 target datalayout = "e-p:64:64"
 target triple = "x86_64-unknown-linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/inline-byval-bonus.ll b/llvm/test/Transforms/Inline/inline-byval-bonus.ll
index 255d1c6e2c378..c27c964bf42e2 100644
--- a/llvm/test/Transforms/Inline/inline-byval-bonus.ll
+++ b/llvm/test/Transforms/Inline/inline-byval-bonus.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -inline -inline-threshold=275 < %s | FileCheck %s
+; RUN: opt -S -passes=inline -inline-threshold=275 < %s | FileCheck %s
 ; RUN: opt -S -passes='cgscc(inline)' -inline-threshold=275 < %s | FileCheck %s
 ; PR13095
 

diff  --git a/llvm/test/Transforms/Inline/inline-call-penalty-option.ll b/llvm/test/Transforms/Inline/inline-call-penalty-option.ll
index d443602fd3420..ec8464fd354be 100644
--- a/llvm/test/Transforms/Inline/inline-call-penalty-option.ll
+++ b/llvm/test/Transforms/Inline/inline-call-penalty-option.ll
@@ -1,8 +1,8 @@
 ; Check that calls are not inlined if the call penalty is low. The value of the
 ; call penalty is provided with the '--inline-call-penalty' option.
 ;
-; RUN: opt < %s -inline --inline-call-penalty=0 --inline-threshold=5 -S | FileCheck %s
-; RUN: opt < %s -inline --inline-threshold=5 -S | FileCheck %s -check-prefix=DEFAULT_CALL_PENALTY
+; RUN: opt < %s -passes=inline --inline-call-penalty=0 --inline-threshold=5 -S | FileCheck %s
+; RUN: opt < %s -passes=inline --inline-threshold=5 -S | FileCheck %s -check-prefix=DEFAULT_CALL_PENALTY
 
 declare void @extern()
 

diff  --git a/llvm/test/Transforms/Inline/inline-constexpr-addrspacecast-argument.ll b/llvm/test/Transforms/Inline/inline-constexpr-addrspacecast-argument.ll
index 37f180dc62e83..cbf4af72fbf55 100644
--- a/llvm/test/Transforms/Inline/inline-constexpr-addrspacecast-argument.ll
+++ b/llvm/test/Transforms/Inline/inline-constexpr-addrspacecast-argument.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -S -passes='cgscc(inline)' < %s | FileCheck %s
 ; RUN: opt -S -passes='module-inline' < %s | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/inline-cost-dead-users.ll b/llvm/test/Transforms/Inline/inline-cost-dead-users.ll
index d340398706622..5dba308c5e28a 100644
--- a/llvm/test/Transforms/Inline/inline-cost-dead-users.ll
+++ b/llvm/test/Transforms/Inline/inline-cost-dead-users.ll
@@ -3,7 +3,7 @@
 ; a direct call to g with bitcasted arguments, leaving the original bitcast
 ; as a dead use of g.
 
-; RUN: opt < %s -instcombine -inline -pass-remarks=inline -S 2>&1 \
+; RUN: opt < %s  -passes='function(instcombine),cgscc(inline)' -pass-remarks=inline -S 2>&1 \
 ; RUN:     | FileCheck %s
 
 ; Inline costs of f and g should be the same.

diff  --git a/llvm/test/Transforms/Inline/inline-fast-math-flags.ll b/llvm/test/Transforms/Inline/inline-fast-math-flags.ll
index 912b6df90690e..0c446c1a5b4ff 100644
--- a/llvm/test/Transforms/Inline/inline-fast-math-flags.ll
+++ b/llvm/test/Transforms/Inline/inline-fast-math-flags.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -inline -inline-threshold=20 | FileCheck %s
+; RUN: opt < %s -S -passes=inline -inline-threshold=20 | FileCheck %s
 ; RUN: opt < %s -S -passes='cgscc(inline)' -inline-threshold=20 | FileCheck %s
 ; RUN: opt < %s -S -passes='module-inline' -inline-threshold=20 | FileCheck %s
 ; Check that we don't drop FastMathFlag when estimating inlining profitability.

diff  --git a/llvm/test/Transforms/Inline/inline-funclets.ll b/llvm/test/Transforms/Inline/inline-funclets.ll
index 409310380f216..dc67ffc33526e 100644
--- a/llvm/test/Transforms/Inline/inline-funclets.ll
+++ b/llvm/test/Transforms/Inline/inline-funclets.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S %s | FileCheck %s
+; RUN: opt -passes=inline -S %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S %s | FileCheck %s
 
 declare void @g()

diff  --git a/llvm/test/Transforms/Inline/inline-indirect-chain.ll b/llvm/test/Transforms/Inline/inline-indirect-chain.ll
index 46b62da848619..4377c32ab868f 100644
--- a/llvm/test/Transforms/Inline/inline-indirect-chain.ll
+++ b/llvm/test/Transforms/Inline/inline-indirect-chain.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -early-cse -earlycse-debug-hash < %s
+; RUN: opt  -passes=inline,early-cse -earlycse-debug-hash < %s
 ; This test used to crash (PR35469).
 
 define void @func1() {

diff  --git a/llvm/test/Transforms/Inline/inline-indirect.ll b/llvm/test/Transforms/Inline/inline-indirect.ll
index f6eb528e06509..c8f01b4dd30f4 100644
--- a/llvm/test/Transforms/Inline/inline-indirect.ll
+++ b/llvm/test/Transforms/Inline/inline-indirect.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output 2>/dev/null
+; RUN: opt < %s -passes=inline -disable-output 2>/dev/null
 ; This test used to trigger an assertion in the assumption cache when
 ; inlining the indirect call
 declare void @llvm.assume(i1)

diff  --git a/llvm/test/Transforms/Inline/inline-invoke-tail.ll b/llvm/test/Transforms/Inline/inline-invoke-tail.ll
index d85ef50fff8c7..9e77cd6edcf41 100644
--- a/llvm/test/Transforms/Inline/inline-invoke-tail.ll
+++ b/llvm/test/Transforms/Inline/inline-invoke-tail.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | not grep "tail call void @llvm.memcpy.p0i8.p0i8.i32"
+; RUN: opt < %s -passes=inline -S | not grep "tail call void @llvm.memcpy.p0i8.p0i8.i32"
 ; PR3550
 
 define internal void @foo(i32* %p, i32* %q) {

diff  --git a/llvm/test/Transforms/Inline/inline-invoke-with-asm-call.ll b/llvm/test/Transforms/Inline/inline-invoke-with-asm-call.ll
index 3b4ba19b7744d..da767f109f2ab 100644
--- a/llvm/test/Transforms/Inline/inline-invoke-with-asm-call.ll
+++ b/llvm/test/Transforms/Inline/inline-invoke-with-asm-call.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 target triple = "x86_64-apple-darwin"
 

diff  --git a/llvm/test/Transforms/Inline/inline-min-legal-vector-width.ll b/llvm/test/Transforms/Inline/inline-min-legal-vector-width.ll
index ec727419f01b6..6746fc2a05b91 100644
--- a/llvm/test/Transforms/Inline/inline-min-legal-vector-width.ll
+++ b/llvm/test/Transforms/Inline/inline-min-legal-vector-width.ll
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline -S | FileCheck %s
+; RUN: opt %s -passes=inline -S | FileCheck %s
 
 define internal void @innerSmall() "min-legal-vector-width"="128" {
   ret void

diff  --git a/llvm/test/Transforms/Inline/inline-no-builtin-compatible.ll b/llvm/test/Transforms/Inline/inline-no-builtin-compatible.ll
index 2568cef155017..b9c0bc98c8499 100644
--- a/llvm/test/Transforms/Inline/inline-no-builtin-compatible.ll
+++ b/llvm/test/Transforms/Inline/inline-no-builtin-compatible.ll
@@ -1,5 +1,5 @@
 ; Test to ensure no inlining is allowed into a caller with fewer nobuiltin attributes.
-; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -S -inline | FileCheck %s
+; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -S -passes=inline | FileCheck %s
 ; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -S -passes='cgscc(inline)' | FileCheck %s
 
 ; Make sure we don't inline callees into a caller with a superset of the

diff  --git a/llvm/test/Transforms/Inline/inline-optnone.ll b/llvm/test/Transforms/Inline/inline-optnone.ll
index 475ef7692ce73..b8f9a23a3e708 100644
--- a/llvm/test/Transforms/Inline/inline-optnone.ll
+++ b/llvm/test/Transforms/Inline/inline-optnone.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s --passes=inline -S | FileCheck %s
 
 ; Test that functions with attribute optnone are not inlined.

diff  --git a/llvm/test/Transforms/Inline/inline-probe-stack.ll b/llvm/test/Transforms/Inline/inline-probe-stack.ll
index bddee16d30b7b..97447ade22b53 100644
--- a/llvm/test/Transforms/Inline/inline-probe-stack.ll
+++ b/llvm/test/Transforms/Inline/inline-probe-stack.ll
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline -S | FileCheck %s
+; RUN: opt %s -passes=inline -S | FileCheck %s
 
 define internal void @inner() "probe-stack"="__probestackinner" {
   ret void

diff  --git a/llvm/test/Transforms/Inline/inline-ptrtoint-
diff erent-sizes.ll b/llvm/test/Transforms/Inline/inline-ptrtoint-
diff erent-sizes.ll
index 818792fb55a98..5bcc9669a0beb 100644
--- a/llvm/test/Transforms/Inline/inline-ptrtoint-
diff erent-sizes.ll
+++ b/llvm/test/Transforms/Inline/inline-ptrtoint-
diff erent-sizes.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 
 ; InlineCost used to have problems with the ptrtoint, leading to
 ; crashes when visiting the trunc in pr47969_help and the icmp in

diff  --git a/llvm/test/Transforms/Inline/inline-recur-stacksize.ll b/llvm/test/Transforms/Inline/inline-recur-stacksize.ll
index ac4bb410c34f5..c68fa82ec6c74 100644
--- a/llvm/test/Transforms/Inline/inline-recur-stacksize.ll
+++ b/llvm/test/Transforms/Inline/inline-recur-stacksize.ll
@@ -1,6 +1,6 @@
 ; Check the recursive inliner doesn't inline a function with a stack size exceeding a given limit.
-; RUN: opt < %s -inline -S | FileCheck --check-prefixes=ALL,UNLIMITED %s
-; RUN: opt < %s -inline -S -recursive-inline-max-stacksize=256 | FileCheck --check-prefixes=ALL,LIMITED %s
+; RUN: opt < %s -passes=inline -S | FileCheck --check-prefixes=ALL,UNLIMITED %s
+; RUN: opt < %s -passes=inline -S -recursive-inline-max-stacksize=256 | FileCheck --check-prefixes=ALL,LIMITED %s
 
 declare void @init([65 x i32]*)
 

diff  --git a/llvm/test/Transforms/Inline/inline-remark.ll b/llvm/test/Transforms/Inline/inline-remark.ll
index bfb78c9ee88e5..49e597b391699 100644
--- a/llvm/test/Transforms/Inline/inline-remark.ll
+++ b/llvm/test/Transforms/Inline/inline-remark.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -inline-remark-attribute --inline-threshold=0 -S | FileCheck %s
+; RUN: opt < %s -passes=inline -inline-remark-attribute --inline-threshold=0 -S | FileCheck %s
 
 ; Test that the inliner adds inline remark attributes to non-inlined callsites.
 

diff  --git a/llvm/test/Transforms/Inline/inline-retainRV-call.ll b/llvm/test/Transforms/Inline/inline-retainRV-call.ll
index 774663895f1ac..d757bd0326792 100644
--- a/llvm/test/Transforms/Inline/inline-retainRV-call.ll
+++ b/llvm/test/Transforms/Inline/inline-retainRV-call.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 
 @g0 = global i8* null, align 8
 declare i8* @foo0()

diff  --git a/llvm/test/Transforms/Inline/inline-scalable.ll b/llvm/test/Transforms/Inline/inline-scalable.ll
index 756f556a9d2d1..7cab4e0fa9e6b 100644
--- a/llvm/test/Transforms/Inline/inline-scalable.ll
+++ b/llvm/test/Transforms/Inline/inline-scalable.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 
 define void @func() {
 ; CHECK-LABEL: func

diff  --git a/llvm/test/Transforms/Inline/inline-semantic-interposition.ll b/llvm/test/Transforms/Inline/inline-semantic-interposition.ll
index 234136e7ca37e..b9e3d3ea2f8f5 100644
--- a/llvm/test/Transforms/Inline/inline-semantic-interposition.ll
+++ b/llvm/test/Transforms/Inline/inline-semantic-interposition.ll
@@ -1,7 +1,7 @@
 ; Check that @callee1 gets inlined while @callee2 is not, because of
 ; SemanticInterposition.
 
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 
 define internal i32 @callee1(i32 %A) {
   ret i32 %A

diff  --git a/llvm/test/Transforms/Inline/inline-skip-use-empty-alloca.ll b/llvm/test/Transforms/Inline/inline-skip-use-empty-alloca.ll
index 48545f10cb35d..ba9d2693d5d45 100644
--- a/llvm/test/Transforms/Inline/inline-skip-use-empty-alloca.ll
+++ b/llvm/test/Transforms/Inline/inline-skip-use-empty-alloca.ll
@@ -1,5 +1,5 @@
-; RUN: opt < %s -S -inline | FileCheck %s
-; RUN: opt < %s -S -strip-debug -inline | FileCheck %s
+; RUN: opt < %s -S -passes=inline | FileCheck %s
+; RUN: opt < %s -S -strip-debug -passes=inline | FileCheck %s
 
 ; https://bugs.llvm.org/show_bug.cgi?id=43291
 ; The purpose of this test is to check if there is use_empty in the inner loop when scanning

diff  --git a/llvm/test/Transforms/Inline/inline-stack-probe-size.ll b/llvm/test/Transforms/Inline/inline-stack-probe-size.ll
index d24da462d2ef8..e200ad3baee61 100644
--- a/llvm/test/Transforms/Inline/inline-stack-probe-size.ll
+++ b/llvm/test/Transforms/Inline/inline-stack-probe-size.ll
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline -S | FileCheck %s
+; RUN: opt %s -passes=inline -S | FileCheck %s
 
 define internal void @innerSmall() "stack-probe-size"="4096" {
   ret void

diff  --git a/llvm/test/Transforms/Inline/inline-stacksize.ll b/llvm/test/Transforms/Inline/inline-stacksize.ll
index a71a2d02ecdda..f2fef0c00d5b4 100644
--- a/llvm/test/Transforms/Inline/inline-stacksize.ll
+++ b/llvm/test/Transforms/Inline/inline-stacksize.ll
@@ -1,6 +1,6 @@
 ; Check the inliner doesn't inline a function with a stack size exceeding a given limit.
-; RUN: opt < %s -inline -S | FileCheck --check-prefixes=ALL,UNLIMITED %s
-; RUN: opt < %s -inline -S -inline-max-stacksize=256 | FileCheck --check-prefixes=ALL,LIMITED %s
+; RUN: opt < %s -passes=inline -S | FileCheck --check-prefixes=ALL,UNLIMITED %s
+; RUN: opt < %s -passes=inline -S -inline-max-stacksize=256 | FileCheck --check-prefixes=ALL,LIMITED %s
 
 declare void @init([65 x i32]*)
 

diff  --git a/llvm/test/Transforms/Inline/inline-strictfp.ll b/llvm/test/Transforms/Inline/inline-strictfp.ll
index f6566fc54abc2..bc42fafd63943 100644
--- a/llvm/test/Transforms/Inline/inline-strictfp.ll
+++ b/llvm/test/Transforms/Inline/inline-strictfp.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline %s -S | FileCheck %s
+; RUN: opt -passes=inline %s -S | FileCheck %s
 
 
 ; Ordinary function is inlined into strictfp function.

diff  --git a/llvm/test/Transforms/Inline/inline-tail.ll b/llvm/test/Transforms/Inline/inline-tail.ll
index dbb2ae6058eb5..f5d9671748a47 100644
--- a/llvm/test/Transforms/Inline/inline-tail.ll
+++ b/llvm/test/Transforms/Inline/inline-tail.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; We have to apply the less restrictive TailCallKind of the call site being

diff  --git a/llvm/test/Transforms/Inline/inline-varargs.ll b/llvm/test/Transforms/Inline/inline-varargs.ll
index 6fbcd123ddfeb..a3f85936eaa02 100644
--- a/llvm/test/Transforms/Inline/inline-varargs.ll
+++ b/llvm/test/Transforms/Inline/inline-varargs.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline,function(instcombine))' -S | FileCheck %s
 
 declare void @ext_method(i8*, i32)

diff  --git a/llvm/test/Transforms/Inline/inline-vla.ll b/llvm/test/Transforms/Inline/inline-vla.ll
index 92361a353de71..750543ee89f6f 100644
--- a/llvm/test/Transforms/Inline/inline-vla.ll
+++ b/llvm/test/Transforms/Inline/inline-vla.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -inline %s -o - | FileCheck %s
+; RUN: opt -S -passes=inline %s -o - | FileCheck %s
 ; RUN: opt -S -passes='cgscc(inline)' %s -o - | FileCheck %s
 ; RUN: opt -S -passes='module-inline' %s -o - | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/inline_cleanup.ll b/llvm/test/Transforms/Inline/inline_cleanup.ll
index 344d900c5a3af..85d63e63d818a 100644
--- a/llvm/test/Transforms/Inline/inline_cleanup.ll
+++ b/llvm/test/Transforms/Inline/inline_cleanup.ll
@@ -1,7 +1,7 @@
 ; Test that the inliner doesn't leave around dead allocas, and that it folds
 ; uncond branches away after it is done specializing.
 
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 @A = weak global i32 0		; <i32*> [#uses=1]

diff  --git a/llvm/test/Transforms/Inline/inline_constprop.ll b/llvm/test/Transforms/Inline/inline_constprop.ll
index f5c82eeceb202..0b1872db79f05 100644
--- a/llvm/test/Transforms/Inline/inline_constprop.ll
+++ b/llvm/test/Transforms/Inline/inline_constprop.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -inline-threshold=20 -S | FileCheck %s
+; RUN: opt < %s -passes=inline -inline-threshold=20 -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=20 -S | FileCheck %s
 
 define internal i32 @callee1(i32 %A, i32 %B) {

diff  --git a/llvm/test/Transforms/Inline/inline_dbg_declare.ll b/llvm/test/Transforms/Inline/inline_dbg_declare.ll
index bfbfb8e76d51d..5a3a313f978e7 100644
--- a/llvm/test/Transforms/Inline/inline_dbg_declare.ll
+++ b/llvm/test/Transforms/Inline/inline_dbg_declare.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -inline | FileCheck %s
+; RUN: opt < %s -S -passes=inline | FileCheck %s
 ; RUN: opt < %s -S -passes='cgscc(inline)' | FileCheck %s
 ;
 ; The purpose of this test is to check that inline pass preserves debug info

diff  --git a/llvm/test/Transforms/Inline/inline_dce.ll b/llvm/test/Transforms/Inline/inline_dce.ll
index 97d9f3f81e4ff..8ac074d4e5c88 100644
--- a/llvm/test/Transforms/Inline/inline_dce.ll
+++ b/llvm/test/Transforms/Inline/inline_dce.ll
@@ -1,7 +1,7 @@
-; This checks to ensure that the inline pass deletes functions if they get 
+; This checks to ensure that the inline pass deletes functions if they get
 ; inlined into all of their callers.
 
-; RUN: opt < %s -inline -S | \
+; RUN: opt < %s -passes=inline -S | \
 ; RUN:   not grep @reallysmall
 
 define internal i32 @reallysmall(i32 %A) {

diff  --git a/llvm/test/Transforms/Inline/inline_inv_group.ll b/llvm/test/Transforms/Inline/inline_inv_group.ll
index c33048d7127f2..4346bb3e975a7 100644
--- a/llvm/test/Transforms/Inline/inline_inv_group.ll
+++ b/llvm/test/Transforms/Inline/inline_inv_group.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/inline_invoke.ll b/llvm/test/Transforms/Inline/inline_invoke.ll
index 8dfb170b14804..8f95cf10cdfda 100644
--- a/llvm/test/Transforms/Inline/inline_invoke.ll
+++ b/llvm/test/Transforms/Inline/inline_invoke.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; Test that the inliner correctly handles inlining into invoke sites

diff  --git a/llvm/test/Transforms/Inline/inline_minisize.ll b/llvm/test/Transforms/Inline/inline_minisize.ll
index e4bc9bcd7359a..c19b94fdc4090 100644
--- a/llvm/test/Transforms/Inline/inline_minisize.ll
+++ b/llvm/test/Transforms/Inline/inline_minisize.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -inline-threshold=225 -inlinehint-threshold=360 -S < %s | FileCheck %s
+; RUN: opt -passes=inline -inline-threshold=225 -inlinehint-threshold=360 -S < %s | FileCheck %s
 
 @data = common global i32* null, align 8
 

diff  --git a/llvm/test/Transforms/Inline/inline_negative_result.ll b/llvm/test/Transforms/Inline/inline_negative_result.ll
index 8dd185ca6d35b..9b116c4a25d68 100644
--- a/llvm/test/Transforms/Inline/inline_negative_result.ll
+++ b/llvm/test/Transforms/Inline/inline_negative_result.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 
 ; PR42084
 

diff  --git a/llvm/test/Transforms/Inline/inline_prune.ll b/llvm/test/Transforms/Inline/inline_prune.ll
index c4c5c0cf25292..6be268a584def 100644
--- a/llvm/test/Transforms/Inline/inline_prune.ll
+++ b/llvm/test/Transforms/Inline/inline_prune.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 define internal i32 @callee1(i32 %A, i32 %B) {

diff  --git a/llvm/test/Transforms/Inline/inline_returns_twice.ll b/llvm/test/Transforms/Inline/inline_returns_twice.ll
index c1f31d6719ecd..9a57af0966483 100644
--- a/llvm/test/Transforms/Inline/inline_returns_twice.ll
+++ b/llvm/test/Transforms/Inline/inline_returns_twice.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; Check that functions with "returns_twice" calls are only inlined,

diff  --git a/llvm/test/Transforms/Inline/inline_ssp.ll b/llvm/test/Transforms/Inline/inline_ssp.ll
index a4f73f4dcd5ad..5ae2420abd201 100644
--- a/llvm/test/Transforms/Inline/inline_ssp.ll
+++ b/llvm/test/Transforms/Inline/inline_ssp.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline %s -S | FileCheck %s
+; RUN: opt -passes=inline %s -S | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' %s -S | FileCheck %s
 ; Ensure SSP attributes are propagated correctly when inlining.
 

diff  --git a/llvm/test/Transforms/Inline/inline_stats.ll b/llvm/test/Transforms/Inline/inline_stats.ll
index 25933b143ca1f..93c90c708b029 100644
--- a/llvm/test/Transforms/Inline/inline_stats.ll
+++ b/llvm/test/Transforms/Inline/inline_stats.ll
@@ -1,6 +1,6 @@
 ; First with legacy PM
-; RUN: opt -S -inline -inliner-function-import-stats=basic < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-BASIC,CHECK
-; RUN: opt -S -inline -inliner-function-import-stats=verbose < %s 2>&1 | FileCheck %s --check-prefixes="CHECK-VERBOSE",CHECK
+; RUN: opt -S -passes=inline -inliner-function-import-stats=basic < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-BASIC,CHECK
+; RUN: opt -S -passes=inline -inliner-function-import-stats=verbose < %s 2>&1 | FileCheck %s --check-prefixes="CHECK-VERBOSE",CHECK
 
 ; Do again with new PM
 ; RUN: opt -S -passes=inline -inliner-function-import-stats=basic < %s 2>&1 | FileCheck %s --check-prefixes=CHECK-BASIC,CHECK

diff  --git a/llvm/test/Transforms/Inline/inline_unreachable-2.ll b/llvm/test/Transforms/Inline/inline_unreachable-2.ll
index 825999593ac14..703cd430adae3 100644
--- a/llvm/test/Transforms/Inline/inline_unreachable-2.ll
+++ b/llvm/test/Transforms/Inline/inline_unreachable-2.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 ; CHECK-LABEL: caller

diff  --git a/llvm/test/Transforms/Inline/inline_unreachable.ll b/llvm/test/Transforms/Inline/inline_unreachable.ll
index b23ddc8527558..9699ff68e4fb6 100644
--- a/llvm/test/Transforms/Inline/inline_unreachable.ll
+++ b/llvm/test/Transforms/Inline/inline_unreachable.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 @a = global i32 4

diff  --git a/llvm/test/Transforms/Inline/inlined-loop-metadata-inseltpoison.ll b/llvm/test/Transforms/Inline/inlined-loop-metadata-inseltpoison.ll
index 60c2f42a8f351..b054852a23faf 100644
--- a/llvm/test/Transforms/Inline/inlined-loop-metadata-inseltpoison.ll
+++ b/llvm/test/Transforms/Inline/inlined-loop-metadata-inseltpoison.ll
@@ -1,7 +1,7 @@
 ; This test checks that the !llvm.loop metadata has been updated after inlining
 ; so that the start and end locations refer to the inlined DILocations.
 
-; RUN: opt -inline -always-inline %s -S 2>&1 | FileCheck %s
+; RUN: opt  -passes='cgscc(inline),always-inline' %s -S 2>&1 | FileCheck %s
 ; CHECK: br i1 %{{.*}}, label %middle.block.i, label %vector.body.i, !dbg !{{[0-9]+}}, !llvm.loop [[VECTOR:![0-9]+]]
 ; CHECK: br i1 %{{.*}}, label %for.cond.cleanup.loopexit.i, label %for.body.i, !dbg !{{[0-9]+}}, !llvm.loop [[SCALAR:![0-9]+]]
 ; CHECK-DAG: [[VECTOR]] = distinct !{[[VECTOR]], [[START:![0-9]+]], [[END:![0-9]+]], [[IS_VECTORIZED:![0-9]+]]}

diff  --git a/llvm/test/Transforms/Inline/inlined-loop-metadata.ll b/llvm/test/Transforms/Inline/inlined-loop-metadata.ll
index 29129fe98d12d..1ca94459beddf 100644
--- a/llvm/test/Transforms/Inline/inlined-loop-metadata.ll
+++ b/llvm/test/Transforms/Inline/inlined-loop-metadata.ll
@@ -1,7 +1,7 @@
 ; This test checks that the !llvm.loop metadata has been updated after inlining
 ; so that the start and end locations refer to the inlined DILocations.
 
-; RUN: opt -inline -always-inline %s -S 2>&1 | FileCheck %s
+; RUN: opt  -passes='cgscc(inline),always-inline' %s -S 2>&1 | FileCheck %s
 ; CHECK: br i1 %{{.*}}, label %middle.block.i, label %vector.body.i, !dbg !{{[0-9]+}}, !llvm.loop [[VECTOR:![0-9]+]]
 ; CHECK: br i1 %{{.*}}, label %for.cond.cleanup.loopexit.i, label %for.body.i, !dbg !{{[0-9]+}}, !llvm.loop [[SCALAR:![0-9]+]]
 ; CHECK-DAG: [[VECTOR]] = distinct !{[[VECTOR]], [[START:![0-9]+]], [[END:![0-9]+]], [[IS_VECTORIZED:![0-9]+]]}

diff  --git a/llvm/test/Transforms/Inline/internal-scc-members.ll b/llvm/test/Transforms/Inline/internal-scc-members.ll
index c12ff6cfdc58b..bead4bba05c89 100644
--- a/llvm/test/Transforms/Inline/internal-scc-members.ll
+++ b/llvm/test/Transforms/Inline/internal-scc-members.ll
@@ -1,7 +1,7 @@
 ; Test that the inliner can handle deleting functions within an SCC while still
 ; processing the calls in that SCC.
 ;
-; RUN: opt < %s -S -inline | FileCheck %s
+; RUN: opt < %s -S -passes=inline | FileCheck %s
 ; RUN: opt < %s -S -passes=inline | FileCheck %s
 ; RUN: opt < %s -S -passes=inliner-wrapper | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/invoke-cleanup.ll b/llvm/test/Transforms/Inline/invoke-cleanup.ll
index 1ba4e876e8cb3..bc9385b9a8f6e 100644
--- a/llvm/test/Transforms/Inline/invoke-cleanup.ll
+++ b/llvm/test/Transforms/Inline/invoke-cleanup.ll
@@ -1,4 +1,4 @@
-; RUN: opt %s -inline -S | FileCheck %s
+; RUN: opt %s -passes=inline -S | FileCheck %s
 ; RUN: opt %s -passes='cgscc(inline)' -S | FileCheck %s
 ; RUN: opt %s -passes='module-inline' -S | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/invoke-cost.ll b/llvm/test/Transforms/Inline/invoke-cost.ll
index fb60d42ecdedd..aff59671d76d0 100644
--- a/llvm/test/Transforms/Inline/invoke-cost.ll
+++ b/llvm/test/Transforms/Inline/invoke-cost.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline < %s -S -o - -inline-threshold=100 | FileCheck %s
+; RUN: opt -passes=inline < %s -S -o - -inline-threshold=100 | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' < %s -S -o - -inline-threshold=100 | FileCheck %s
 
 target datalayout = "p:32:32"

diff  --git a/llvm/test/Transforms/Inline/invoke_test-1.ll b/llvm/test/Transforms/Inline/invoke_test-1.ll
index 4e16d254d5b8e..55d6a2befeaff 100644
--- a/llvm/test/Transforms/Inline/invoke_test-1.ll
+++ b/llvm/test/Transforms/Inline/invoke_test-1.ll
@@ -1,7 +1,7 @@
 ; Test that we can inline a simple function, turning the calls in it into invoke
 ; instructions
 
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 ; RUN: opt < %s -passes='module-inline' -S | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/invoke_test-2.ll b/llvm/test/Transforms/Inline/invoke_test-2.ll
index ac1822b9bfcd3..6282ff96cd0c2 100644
--- a/llvm/test/Transforms/Inline/invoke_test-2.ll
+++ b/llvm/test/Transforms/Inline/invoke_test-2.ll
@@ -1,7 +1,7 @@
 ; Test that if an invoked function is inlined, and if that function cannot
 ; throw, that the dead handler is now unreachable.
 
-; RUN: opt < %s -inline -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
+; RUN: opt < %s  -passes=inline,simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s
 
 declare void @might_throw()
 

diff  --git a/llvm/test/Transforms/Inline/invoke_test-3.ll b/llvm/test/Transforms/Inline/invoke_test-3.ll
index cf0866eeb6275..b7d2f91888838 100644
--- a/llvm/test/Transforms/Inline/invoke_test-3.ll
+++ b/llvm/test/Transforms/Inline/invoke_test-3.ll
@@ -1,7 +1,7 @@
 ; Test that any rethrown exceptions in an inlined function are automatically
 ; turned into branches to the invoke destination.
 
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 ; RUN: opt < %s -passes='module-inline' -S | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/label-annotation.ll b/llvm/test/Transforms/Inline/label-annotation.ll
index 9d471f6362060..bed3c8320d841 100644
--- a/llvm/test/Transforms/Inline/label-annotation.ll
+++ b/llvm/test/Transforms/Inline/label-annotation.ll
@@ -1,7 +1,7 @@
 ; Inlining should not clone label annotations.
 ; Currently we block all duplication for simplicity.
 
-; RUN: opt < %s -S -inline | FileCheck %s
+; RUN: opt < %s -S -passes=inline | FileCheck %s
 
 @the_global = global i32 0
 

diff  --git a/llvm/test/Transforms/Inline/last-call-bonus.ll b/llvm/test/Transforms/Inline/last-call-bonus.ll
index d1c466b1d765d..550d1b1def153 100644
--- a/llvm/test/Transforms/Inline/last-call-bonus.ll
+++ b/llvm/test/Transforms/Inline/last-call-bonus.ll
@@ -9,7 +9,6 @@
 ; callsites big enough, loop unrolling pass with very high threshold is used to
 ; preprocess the test.
 
-; RUN: opt < %s -loop-unroll -inline -unroll-threshold=15000 -inline-threshold=250 -S | FileCheck %s
 ; RUN: opt < %s -passes='function(require<opt-remark-emit>,loop-unroll),require<profile-summary>,cgscc(inline)' -unroll-threshold=15000 -inline-threshold=250 -S | FileCheck %s
 ; CHECK-LABEL: define internal i32 @bar()
 

diff  --git a/llvm/test/Transforms/Inline/launder.invariant.group.ll b/llvm/test/Transforms/Inline/launder.invariant.group.ll
index 015ebe6efbf9d..ccd722f4d88c2 100644
--- a/llvm/test/Transforms/Inline/launder.invariant.group.ll
+++ b/llvm/test/Transforms/Inline/launder.invariant.group.ll
@@ -1,6 +1,6 @@
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -S -O3 < %s | FileCheck %s
-; RUN: opt -S -inline -inline-threshold=1 < %s | FileCheck %s
+; RUN: opt -S -passes=inline -inline-threshold=1 < %s | FileCheck %s
 
 %struct.A = type <{ i32 (...)**, i32, [4 x i8] }>
 

diff  --git a/llvm/test/Transforms/Inline/lifetime-no-datalayout.ll b/llvm/test/Transforms/Inline/lifetime-no-datalayout.ll
index 5d1872c6a244c..f2dfe9daa211d 100644
--- a/llvm/test/Transforms/Inline/lifetime-no-datalayout.ll
+++ b/llvm/test/Transforms/Inline/lifetime-no-datalayout.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 
 declare void @use(i8* %a)

diff  --git a/llvm/test/Transforms/Inline/lifetime.ll b/llvm/test/Transforms/Inline/lifetime.ll
index c47091395fce4..c82cd41e03d7f 100644
--- a/llvm/test/Transforms/Inline/lifetime.ll
+++ b/llvm/test/Transforms/Inline/lifetime.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 

diff  --git a/llvm/test/Transforms/Inline/memprof_inline.ll b/llvm/test/Transforms/Inline/memprof_inline.ll
index 840136763795e..c0300e07971a5 100644
--- a/llvm/test/Transforms/Inline/memprof_inline.ll
+++ b/llvm/test/Transforms/Inline/memprof_inline.ll
@@ -28,7 +28,7 @@
 ;; }
 
 
-; RUN: opt -inline %s -S | FileCheck %s
+; RUN: opt -passes=inline %s -S | FileCheck %s
 
 ; ModuleID = 'memprof_inline.cc'
 source_filename = "memprof_inline.cc"

diff  --git a/llvm/test/Transforms/Inline/memprof_inline2.ll b/llvm/test/Transforms/Inline/memprof_inline2.ll
index 14c4a21251af2..edd722d361281 100644
--- a/llvm/test/Transforms/Inline/memprof_inline2.ll
+++ b/llvm/test/Transforms/Inline/memprof_inline2.ll
@@ -37,7 +37,7 @@
 ;;   return 0;
 ;; }
 
-; RUN: opt -inline %s -S | FileCheck %s
+; RUN: opt -passes=inline %s -S | FileCheck %s
 
 ; ModuleID = 'memprof_inline2.cc'
 source_filename = "memprof_inline2.cc"

diff  --git a/llvm/test/Transforms/Inline/nested-inline.ll b/llvm/test/Transforms/Inline/nested-inline.ll
index ed068c39517a6..fb8a7bc9e27d6 100644
--- a/llvm/test/Transforms/Inline/nested-inline.ll
+++ b/llvm/test/Transforms/Inline/nested-inline.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 ; RUN: opt < %s -passes='module-inline' -S | FileCheck %s
 ; Test that bar and bar2 are both inlined throughout and removed.

diff  --git a/llvm/test/Transforms/Inline/no-inline-line-tables.ll b/llvm/test/Transforms/Inline/no-inline-line-tables.ll
index b20f6b75888d6..f0acde1363b25 100644
--- a/llvm/test/Transforms/Inline/no-inline-line-tables.ll
+++ b/llvm/test/Transforms/Inline/no-inline-line-tables.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 
 ; This tests that functions with the attribute `no-inline-line-tables` have the
 ; correct debug information when they are inlined.

diff  --git a/llvm/test/Transforms/Inline/no-unwind-inline-asm.ll b/llvm/test/Transforms/Inline/no-unwind-inline-asm.ll
index 4e939903723f6..f1a80bdf4ff08 100644
--- a/llvm/test/Transforms/Inline/no-unwind-inline-asm.ll
+++ b/llvm/test/Transforms/Inline/no-unwind-inline-asm.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 
 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/noalias-calls.ll b/llvm/test/Transforms/Inline/noalias-calls.ll
index aca1364bcc1fc..e6fc770e70a11 100644
--- a/llvm/test/Transforms/Inline/noalias-calls.ll
+++ b/llvm/test/Transforms/Inline/noalias-calls.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
-; RUN: opt -inline -enable-noalias-to-md-conversion -S < %s | FileCheck %s
+; RUN: opt -passes=inline -enable-noalias-to-md-conversion -S < %s | FileCheck %s
 ; RUN: opt -aa-pipeline=basic-aa -passes=inline -enable-noalias-to-md-conversion -S < %s | FileCheck %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/noalias-calls2.ll b/llvm/test/Transforms/Inline/noalias-calls2.ll
index fa105ef5be2de..6148e50686b3d 100644
--- a/llvm/test/Transforms/Inline/noalias-calls2.ll
+++ b/llvm/test/Transforms/Inline/noalias-calls2.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
-; RUN: opt -inline -enable-noalias-to-md-conversion -S < %s | FileCheck %s
+; RUN: opt -passes=inline -enable-noalias-to-md-conversion -S < %s | FileCheck %s
 ; RUN: opt -aa-pipeline=basic-aa -passes=inline -enable-noalias-to-md-conversion -S < %s | FileCheck %s
 
 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"

diff  --git a/llvm/test/Transforms/Inline/noalias-cs.ll b/llvm/test/Transforms/Inline/noalias-cs.ll
index edc0b8755a0cd..f534fca3a8bf4 100644
--- a/llvm/test/Transforms/Inline/noalias-cs.ll
+++ b/llvm/test/Transforms/Inline/noalias-cs.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 target datalayout = "e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 

diff  --git a/llvm/test/Transforms/Inline/noalias.ll b/llvm/test/Transforms/Inline/noalias.ll
index 11e843f8e6ee6..b85e902ff93e8 100644
--- a/llvm/test/Transforms/Inline/noalias.ll
+++ b/llvm/test/Transforms/Inline/noalias.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -enable-noalias-to-md-conversion -S < %s | FileCheck %s
+; RUN: opt -passes=inline -enable-noalias-to-md-conversion -S < %s | FileCheck %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 

diff  --git a/llvm/test/Transforms/Inline/noalias2.ll b/llvm/test/Transforms/Inline/noalias2.ll
index eb280a14b5073..451d7b27fd73f 100644
--- a/llvm/test/Transforms/Inline/noalias2.ll
+++ b/llvm/test/Transforms/Inline/noalias2.ll
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
-; RUN: opt -inline -enable-noalias-to-md-conversion -S < %s | FileCheck %s
-; RUN: opt -inline -enable-noalias-to-md-conversion --enable-knowledge-retention -S < %s | FileCheck %s
+; RUN: opt -passes=inline -enable-noalias-to-md-conversion -S < %s | FileCheck %s
+; RUN: opt -passes=inline -enable-noalias-to-md-conversion --enable-knowledge-retention -S < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/noalias3.ll b/llvm/test/Transforms/Inline/noalias3.ll
index b94cbd6ab72f9..2b73e410eba5e 100644
--- a/llvm/test/Transforms/Inline/noalias3.ll
+++ b/llvm/test/Transforms/Inline/noalias3.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 
 define void @caller(i8* %ptr) {
 ; CHECK-LABEL: define {{[^@]+}}@caller

diff  --git a/llvm/test/Transforms/Inline/noinline-recursive-fn.ll b/llvm/test/Transforms/Inline/noinline-recursive-fn.ll
index 2b1851bd46b18..862eadd1700a7 100644
--- a/llvm/test/Transforms/Inline/noinline-recursive-fn.ll
+++ b/llvm/test/Transforms/Inline/noinline-recursive-fn.ll
@@ -2,7 +2,7 @@
 ; This effectively is just peeling off the first iteration of a loop, and the
 ; inliner heuristics are not set up for this.
 
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"

diff  --git a/llvm/test/Transforms/Inline/noinline.ll b/llvm/test/Transforms/Inline/noinline.ll
index 7667114b68e66..936d46f6c034a 100644
--- a/llvm/test/Transforms/Inline/noinline.ll
+++ b/llvm/test/Transforms/Inline/noinline.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; PR6682
 declare void @foo() nounwind
 

diff  --git a/llvm/test/Transforms/Inline/nonnull.ll b/llvm/test/Transforms/Inline/nonnull.ll
index 8fe86dcc54e46..7d7a68d54aeeb 100644
--- a/llvm/test/Transforms/Inline/nonnull.ll
+++ b/llvm/test/Transforms/Inline/nonnull.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -inline %s | FileCheck %s
+; RUN: opt -S -passes=inline %s | FileCheck %s
 ; RUN: opt -S -passes='cgscc(inline)' %s | FileCheck %s
 ; RUN: opt -S -passes='module-inline' %s | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/opaque-ptr.ll b/llvm/test/Transforms/Inline/opaque-ptr.ll
index 2d22cacb18020..5c301dda0904d 100644
--- a/llvm/test/Transforms/Inline/opaque-ptr.ll
+++ b/llvm/test/Transforms/Inline/opaque-ptr.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 
 define void @test(ptr %p1, ptr %p2) {
 ; CHECK-LABEL: @test(

diff  --git a/llvm/test/Transforms/Inline/optimization-remarks-hotness-threshold.ll b/llvm/test/Transforms/Inline/optimization-remarks-hotness-threshold.ll
index 759b23dc2cffc..3021935cdd025 100644
--- a/llvm/test/Transforms/Inline/optimization-remarks-hotness-threshold.ll
+++ b/llvm/test/Transforms/Inline/optimization-remarks-hotness-threshold.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -inline -pass-remarks=inline \
+; RUN: opt < %s -S -passes=inline -pass-remarks=inline \
 ; RUN:    -pass-remarks-with-hotness 2>&1 | FileCheck %s
 
 ; RUN: opt < %s -S -passes=inline -pass-remarks-output=%t -pass-remarks=inline \

diff  --git a/llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll b/llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll
index 69fec03842d08..b65ed66fcce65 100644
--- a/llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll
+++ b/llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -inline -pass-remarks-output=%t -pass-remarks=inline \
+; RUN: opt < %s -S -passes=inline -pass-remarks-output=%t -pass-remarks=inline \
 ; RUN:    -pass-remarks-missed=inline -pass-remarks-analysis=inline \
 ; RUN:    -pass-remarks-with-hotness 2>&1 | FileCheck %s
 ; RUN: cat %t | FileCheck -check-prefixes=YAML,YAML-NO-ANNOTATE %s

diff  --git a/llvm/test/Transforms/Inline/optimization-remarks-with-hotness.ll b/llvm/test/Transforms/Inline/optimization-remarks-with-hotness.ll
index 22a129393ee51..342fbc287072b 100644
--- a/llvm/test/Transforms/Inline/optimization-remarks-with-hotness.ll
+++ b/llvm/test/Transforms/Inline/optimization-remarks-with-hotness.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -pass-remarks=inline -pass-remarks-missed=inline \
+; RUN: opt < %s -passes=inline -pass-remarks=inline -pass-remarks-missed=inline \
 ; RUN:     -pass-remarks-analysis=inline -pass-remarks-with-hotness -S 2>&1 \
 ; RUN:     | FileCheck %s
 ; RUN: opt < %s -passes=inline -pass-remarks=inline -pass-remarks-missed=inline \

diff  --git a/llvm/test/Transforms/Inline/optimization-remarks-yaml.ll b/llvm/test/Transforms/Inline/optimization-remarks-yaml.ll
index d1b44d847f1bb..5aa953f5926b1 100644
--- a/llvm/test/Transforms/Inline/optimization-remarks-yaml.ll
+++ b/llvm/test/Transforms/Inline/optimization-remarks-yaml.ll
@@ -1,17 +1,17 @@
-; RUN: opt < %s -S -inline -pass-remarks-missed=inline \
+; RUN: opt < %s -S -passes=inline -pass-remarks-missed=inline \
 ; RUN:     -pass-remarks-with-hotness -pass-remarks-hotness-threshold 15 \
 ; RUN:     -pass-remarks-output=%t 2>&1 | FileCheck %s
 ; RUN: cat %t | FileCheck -check-prefix=YAML %s
-; RUN: opt < %s -S -inline -pass-remarks-with-hotness -pass-remarks-output=%t
+; RUN: opt < %s -S -passes=inline -pass-remarks-with-hotness -pass-remarks-output=%t
 ; RUN: cat %t | FileCheck -check-prefix=YAML %s
 ;
 ; Verify that remarks that don't meet the hotness threshold are not output.
-; RUN: opt < %s -S -inline -pass-remarks-missed=inline \
+; RUN: opt < %s -S -passes=inline -pass-remarks-missed=inline \
 ; RUN:     -pass-remarks-with-hotness -pass-remarks-hotness-threshold 100 \
 ; RUN:     -pass-remarks-output=%t.threshold 2>&1 | \
 ; RUN:     FileCheck -check-prefix=THRESHOLD %s
 ; RUN: test ! -s %t.threshold
-; RUN: opt < %s -S -inline \
+; RUN: opt < %s -S -passes=inline \
 ; RUN:     -pass-remarks-with-hotness -pass-remarks-hotness-threshold 100 \
 ; RUN:     -pass-remarks-output=%t.threshold
 ; The remarks output file should be empty.

diff  --git a/llvm/test/Transforms/Inline/optimization-remarks.ll b/llvm/test/Transforms/Inline/optimization-remarks.ll
index a3081a819ef52..bdcfb12830582 100644
--- a/llvm/test/Transforms/Inline/optimization-remarks.ll
+++ b/llvm/test/Transforms/Inline/optimization-remarks.ll
@@ -1,7 +1,7 @@
-; RUN: opt < %s -inline -pass-remarks=inline -pass-remarks-missed=inline \
+; RUN: opt < %s -passes=inline -pass-remarks=inline -pass-remarks-missed=inline \
 ; RUN:       -pass-remarks-analysis=inline -S 2>&1 | \
 ; RUN:       FileCheck -check-prefixes=CHECK,NO_HOTNESS,ALWAYS %s
-; RUN: opt < %s -inline -pass-remarks=inline -pass-remarks-missed=inline \
+; RUN: opt < %s -passes=inline -pass-remarks=inline -pass-remarks-missed=inline \
 ; RUN:       -pass-remarks-analysis=inline -pass-remarks-with-hotness -S 2>&1 | \
 ; RUN:       FileCheck -check-prefixes=CHECK,HOTNESS,ALWAYS %s
 
@@ -77,7 +77,7 @@ entry:
   %mul = fmul float %conv, %call2
   %conv3 = fptosi float %mul to i32
   %call3 = call i32 @fox()
-  %add = add i32 %conv3, %call 
+  %add = add i32 %conv3, %call
   ret i32 %add
 }
 

diff  --git a/llvm/test/Transforms/Inline/parallel-loop-md-callee.ll b/llvm/test/Transforms/Inline/parallel-loop-md-callee.ll
index 4a87c00a44082..41d7530a41e43 100644
--- a/llvm/test/Transforms/Inline/parallel-loop-md-callee.ll
+++ b/llvm/test/Transforms/Inline/parallel-loop-md-callee.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 ;
 ; Check that the !llvm.access.group is still present after inlining.
 ;

diff  --git a/llvm/test/Transforms/Inline/parallel-loop-md-merge.ll b/llvm/test/Transforms/Inline/parallel-loop-md-merge.ll
index a53efb7530209..26ccb7f8e00f5 100644
--- a/llvm/test/Transforms/Inline/parallel-loop-md-merge.ll
+++ b/llvm/test/Transforms/Inline/parallel-loop-md-merge.ll
@@ -1,4 +1,4 @@
-; RUN: opt -always-inline -globalopt -S < %s | FileCheck %s
+; RUN: opt  -passes=always-inline,globalopt -S < %s | FileCheck %s
 ;
 ; static void __attribute__((always_inline)) callee(long n, double A[static const restrict n], long i) {
 ;   for (long j = 0; j < n; j += 1)

diff  --git a/llvm/test/Transforms/Inline/parallel-loop-md.ll b/llvm/test/Transforms/Inline/parallel-loop-md.ll
index a55392d6a737f..a13728ba33b6b 100644
--- a/llvm/test/Transforms/Inline/parallel-loop-md.ll
+++ b/llvm/test/Transforms/Inline/parallel-loop-md.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 ; RUN: opt -S -passes='cgscc(inline)' < %s | FileCheck %s
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/partial-inline-act.ll b/llvm/test/Transforms/Inline/partial-inline-act.ll
index 27e7191538759..b29e929242443 100644
--- a/llvm/test/Transforms/Inline/partial-inline-act.ll
+++ b/llvm/test/Transforms/Inline/partial-inline-act.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -partial-inliner -skip-partial-inlining-cost-analysis -disable-output
+; RUN: opt < %s -passes=partial-inliner -skip-partial-inlining-cost-analysis -disable-output
 ; This testcase tests the assumption cache
 
 define internal i32 @inlinedFunc(i1 %cond, i32* align 4 %align.val) {

diff  --git a/llvm/test/Transforms/Inline/pr21206.ll b/llvm/test/Transforms/Inline/pr21206.ll
index 778c436b3f430..b9293aa9c7313 100644
--- a/llvm/test/Transforms/Inline/pr21206.ll
+++ b/llvm/test/Transforms/Inline/pr21206.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 ; RUN: opt < %s -passes='module-inline' -S | FileCheck %s
 

diff  --git a/llvm/test/Transforms/Inline/pr26698.ll b/llvm/test/Transforms/Inline/pr26698.ll
index 6d5873ff1bcb3..a0bd6a5b63fd1 100644
--- a/llvm/test/Transforms/Inline/pr26698.ll
+++ b/llvm/test/Transforms/Inline/pr26698.ll
@@ -1,4 +1,4 @@
-; RUN: opt -S -inline -inline-threshold=100 -inline-cold-callsite-threshold=100 < %s | FileCheck %s
+; RUN: opt -S -passes=inline -inline-threshold=100 -inline-cold-callsite-threshold=100 < %s | FileCheck %s
 ; RUN: opt -S -passes='cgscc(inline)' -inline-threshold=100 -inline-cold-callsite-threshold=100 < %s | FileCheck %s
 target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
 target triple = "i686-pc-windows-msvc18.0.0"

diff  --git a/llvm/test/Transforms/Inline/pr33637.ll b/llvm/test/Transforms/Inline/pr33637.ll
index 315feca27bd90..48c2b4958097a 100644
--- a/llvm/test/Transforms/Inline/pr33637.ll
+++ b/llvm/test/Transforms/Inline/pr33637.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline < %s
+; RUN: opt -passes=inline < %s
 
 define void @patatino() {
 for.cond:

diff  --git a/llvm/test/Transforms/Inline/pr48209.ll b/llvm/test/Transforms/Inline/pr48209.ll
index 94d33bec4fce0..0b3f22c61c2ed 100644
--- a/llvm/test/Transforms/Inline/pr48209.ll
+++ b/llvm/test/Transforms/Inline/pr48209.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 
 declare void @external_function(i8*)
 

diff  --git a/llvm/test/Transforms/Inline/pr50270.ll b/llvm/test/Transforms/Inline/pr50270.ll
index be7c3379ce873..ff06f78ca17c5 100644
--- a/llvm/test/Transforms/Inline/pr50270.ll
+++ b/llvm/test/Transforms/Inline/pr50270.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 
 ; This tests cases where instructions in the callee are simplified to
 ; instructions in the caller, thus making VMap contain instructions from

diff  --git a/llvm/test/Transforms/Inline/pr50589.ll b/llvm/test/Transforms/Inline/pr50589.ll
index ba7ed236b12a6..8dcd1c0efbcbc 100644
--- a/llvm/test/Transforms/Inline/pr50589.ll
+++ b/llvm/test/Transforms/Inline/pr50589.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 
 ; Test interaction of simplification during cloning with insertion of scoped
 ; noalias metadata.

diff  --git a/llvm/test/Transforms/Inline/pr53206.ll b/llvm/test/Transforms/Inline/pr53206.ll
index b7790e6e9f2c9..e8d133c11c13f 100644
--- a/llvm/test/Transforms/Inline/pr53206.ll
+++ b/llvm/test/Transforms/Inline/pr53206.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -inline < %s | FileCheck %s
+; RUN: opt -S -passes=inline < %s | FileCheck %s
 
 ; Check that the exception handling code is fully pruned, and does not
 ; leave behind invalid IR.

diff  --git a/llvm/test/Transforms/Inline/profile-meta.ll b/llvm/test/Transforms/Inline/profile-meta.ll
index 3c967d6618f78..79434cdc9d54a 100644
--- a/llvm/test/Transforms/Inline/profile-meta.ll
+++ b/llvm/test/Transforms/Inline/profile-meta.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -inline | FileCheck %s
+; RUN: opt < %s -S -passes=inline | FileCheck %s
 ; RUN: opt < %s -S -passes='cgscc(inline)' | FileCheck %s
 
 ; Make sure that profile and unpredictable  metadata is preserved when cloning a select.

diff  --git a/llvm/test/Transforms/Inline/ptr-
diff .ll b/llvm/test/Transforms/Inline/ptr-
diff .ll
index 5ad3994a503dd..8dede3228e007 100644
--- a/llvm/test/Transforms/Inline/ptr-
diff .ll
+++ b/llvm/test/Transforms/Inline/ptr-
diff .ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline < %s -S -o - -inline-threshold=10 | FileCheck %s
+; RUN: opt -passes=inline < %s -S -o - -inline-threshold=10 | FileCheck %s
 
 target datalayout = "p:32:32-p1:64:64-p2:16:16-n16:32:64"
 
@@ -154,4 +154,4 @@ define i32 @inttoptr_cost_smaller_ptr_user(i32 %begin, i32 %end) {
   ret i32 %x
 }
 
-declare void @extern()
\ No newline at end of file
+declare void @extern()

diff  --git a/llvm/test/Transforms/Inline/recursive.ll b/llvm/test/Transforms/Inline/recursive.ll
index cbdf86b093a96..9a79932cde1fd 100644
--- a/llvm/test/Transforms/Inline/recursive.ll
+++ b/llvm/test/Transforms/Inline/recursive.ll
@@ -1,7 +1,7 @@
 ; Inlining in the presence of recursion presents special challenges that we
 ; test here.
 ;
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S < %s | FileCheck %s
 
 define i32 @large_stack_callee(i32 %param) {

diff  --git a/llvm/test/Transforms/Inline/redundant-loads.ll b/llvm/test/Transforms/Inline/redundant-loads.ll
index 176f605fc73b2..591e989e102a7 100644
--- a/llvm/test/Transforms/Inline/redundant-loads.ll
+++ b/llvm/test/Transforms/Inline/redundant-loads.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline < %s -S -o - -inline-threshold=3  | FileCheck %s
+; RUN: opt -passes=inline < %s -S -o - -inline-threshold=3  | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/ret_attr_update.ll b/llvm/test/Transforms/Inline/ret_attr_update.ll
index a6ab988b24468..bfe4b048ad256 100644
--- a/llvm/test/Transforms/Inline/ret_attr_update.ll
+++ b/llvm/test/Transforms/Inline/ret_attr_update.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -inline-threshold=0 -always-inline -S | FileCheck %s
+; RUN: opt < %s -inline-threshold=0 -passes=always-inline -S | FileCheck %s
 ; RUN: opt < %s -passes=always-inline -S | FileCheck %s
 
 declare i8* @foo(i8*) nounwind willreturn

diff  --git a/llvm/test/Transforms/Inline/switch.ll b/llvm/test/Transforms/Inline/switch.ll
index 83f0192698292..8d3a2e38aef83 100644
--- a/llvm/test/Transforms/Inline/switch.ll
+++ b/llvm/test/Transforms/Inline/switch.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -inline-threshold=20 -S | FileCheck %s
+; RUN: opt < %s -passes=inline -inline-threshold=20 -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=20 -S | FileCheck %s
 
 define i32 @callee(i32 %a) {

diff  --git a/llvm/test/Transforms/Inline/unwind-inline-asm.ll b/llvm/test/Transforms/Inline/unwind-inline-asm.ll
index 5aad052a55666..cb761921dadd0 100644
--- a/llvm/test/Transforms/Inline/unwind-inline-asm.ll
+++ b/llvm/test/Transforms/Inline/unwind-inline-asm.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 
 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"

diff  --git a/llvm/test/Transforms/Inline/vector-bonus.ll b/llvm/test/Transforms/Inline/vector-bonus.ll
index 567ff02e136c1..e406a5c711356 100644
--- a/llvm/test/Transforms/Inline/vector-bonus.ll
+++ b/llvm/test/Transforms/Inline/vector-bonus.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -inline-threshold=35  -S | FileCheck %s
+; RUN: opt < %s -passes=inline -inline-threshold=35  -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=35  -S | FileCheck %s
 
 define i32 @bar(<4 x i32> %v, i32 %i) #0 {

diff  --git a/llvm/test/Transforms/Inline/vector-no-bonus.ll b/llvm/test/Transforms/Inline/vector-no-bonus.ll
index d20e1ae7fa296..61340bf63bc4a 100644
--- a/llvm/test/Transforms/Inline/vector-no-bonus.ll
+++ b/llvm/test/Transforms/Inline/vector-no-bonus.ll
@@ -1,7 +1,7 @@
 ; The code in this test is very similar to vector-bonus.ll except for
 ; the fact that the call to bar is cold thereby preventing the application of
 ; the vector bonus.
-; RUN: opt < %s -inline -inline-threshold=35  -S | FileCheck %s
+; RUN: opt < %s -passes=inline -inline-threshold=35  -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -inline-threshold=35  -S | FileCheck %s
 
 define i32 @bar(<4 x i32> %v, i32 %i) #0 {

diff  --git a/llvm/test/Transforms/Inline/zero-cost.ll b/llvm/test/Transforms/Inline/zero-cost.ll
index 6f5348ff395ad..7e2d33d6e357d 100644
--- a/llvm/test/Transforms/Inline/zero-cost.ll
+++ b/llvm/test/Transforms/Inline/zero-cost.ll
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S %s | FileCheck %s
+; RUN: opt -passes=inline -S %s | FileCheck %s
 ; RUN: opt -passes='cgscc(inline)' -S %s | FileCheck %s
 
 define void @f() {


        


More information about the llvm-commits mailing list