From e5369823bc0655806469724335d0ca5a4c17d8c7 Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Thu, 8 Dec 2022 03:08:54 +0300 Subject: [PATCH] [NFC] Port all Inline tests to `-passes=` syntax --- llvm/test/Transforms/Inline/2003-09-14-InlineValue.ll | 2 +- llvm/test/Transforms/Inline/2003-09-22-PHINodeInlineFail.ll | 2 +- llvm/test/Transforms/Inline/2003-09-22-PHINodesInExceptionDest.ll | 2 +- .../Transforms/Inline/2003-09-22-PHINodesInNormalInvokeDest.ll | 2 +- llvm/test/Transforms/Inline/2003-10-13-AllocaDominanceProblem.ll | 2 +- llvm/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll | 2 +- .../Transforms/Inline/2004-10-17-InlineFunctionWithoutReturn.ll | 2 +- llvm/test/Transforms/Inline/2007-04-15-InlineEH.ll | 2 +- llvm/test/Transforms/Inline/2007-06-25-WeakInline.ll | 2 +- llvm/test/Transforms/Inline/2007-12-19-InlineNoUnwind.ll | 2 +- llvm/test/Transforms/Inline/2008-09-02-NoInline.ll | 2 +- llvm/test/Transforms/Inline/2009-01-08-NoInlineDynamicAlloca.ll | 2 +- llvm/test/Transforms/Inline/2009-05-07-CallUsingSelfCrash.ll | 2 +- llvm/test/Transforms/Inline/2010-05-12-ValueMap.ll | 2 +- llvm/test/Transforms/Inline/AArch64/binop.ll | 2 +- llvm/test/Transforms/Inline/AArch64/ext.ll | 2 +- llvm/test/Transforms/Inline/AArch64/gep-cost.ll | 2 +- llvm/test/Transforms/Inline/AArch64/inline-target-attr.ll | 2 +- llvm/test/Transforms/Inline/AArch64/logical-and-or.ll | 2 +- llvm/test/Transforms/Inline/AArch64/phi.ll | 2 +- llvm/test/Transforms/Inline/AArch64/select.ll | 2 +- llvm/test/Transforms/Inline/AArch64/sme-pstatesm-attrs.ll | 2 +- llvm/test/Transforms/Inline/AArch64/sme-pstateza-attrs.ll | 2 +- llvm/test/Transforms/Inline/AArch64/sve-alloca-merge.ll | 2 +- llvm/test/Transforms/Inline/AArch64/switch.ll | 2 +- .../Transforms/Inline/AMDGPU/amdgpu-inline-alloca-argument.ll | 2 +- llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-dx10-clamp.ll | 2 +- llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-ieee.ll | 2 +- .../Transforms/Inline/AMDGPU/inline-amdgpu-unsafe-fp-atomics.ll | 2 +- llvm/test/Transforms/Inline/AMDGPU/inline-amdgpu-vecbonus.ll | 2 +- llvm/test/Transforms/Inline/AMDGPU/inline-denormal-fp-math.ll | 2 +- llvm/test/Transforms/Inline/AMDGPU/inline-hint.ll | 2 +- llvm/test/Transforms/Inline/AMDGPU/inline-target-cpu.ll | 2 +- .../Transforms/Inline/AMDGPU/inline-target-feature-sram-ecc.ll | 2 +- llvm/test/Transforms/Inline/AMDGPU/inline-target-feature-xnack.ll | 2 +- llvm/test/Transforms/Inline/ARM/inline-fp.ll | 6 +++--- llvm/test/Transforms/Inline/ARM/inline-target-attr.ll | 2 +- llvm/test/Transforms/Inline/ARM/loop-add.ll | 2 +- llvm/test/Transforms/Inline/ARM/loop-memcpy.ll | 2 +- llvm/test/Transforms/Inline/ARM/loop-noinline.ll | 2 +- llvm/test/Transforms/Inline/PR4909.ll | 2 +- llvm/test/Transforms/Inline/PowerPC/ext.ll | 2 +- llvm/test/Transforms/Inline/WebAssembly/inline-target-features.ll | 2 +- llvm/test/Transforms/Inline/X86/call-abi-compatibility.ll | 2 +- llvm/test/Transforms/Inline/X86/ext.ll | 2 +- llvm/test/Transforms/Inline/X86/extractvalue.ll | 2 +- llvm/test/Transforms/Inline/X86/inline-target-attr.ll | 2 +- llvm/test/Transforms/Inline/X86/inline-target-cpu-i686.ll | 2 +- llvm/test/Transforms/Inline/X86/inline-target-cpu-x86_64.ll | 2 +- llvm/test/Transforms/Inline/X86/insertvalue.ll | 2 +- llvm/test/Transforms/Inline/X86/switch.ll | 2 +- llvm/test/Transforms/Inline/align.ll | 2 +- llvm/test/Transforms/Inline/alloca-bonus.ll | 2 +- llvm/test/Transforms/Inline/alloca-dbgdeclare.ll | 8 ++++---- llvm/test/Transforms/Inline/alloca-in-scc.ll | 6 +++--- llvm/test/Transforms/Inline/alloca_test.ll | 2 +- llvm/test/Transforms/Inline/arg-attr-propagation.ll | 4 ++-- llvm/test/Transforms/Inline/array-alloca.ll | 2 +- llvm/test/Transforms/Inline/attributes.ll | 4 ++-- llvm/test/Transforms/Inline/blockaddress.ll | 2 +- llvm/test/Transforms/Inline/byref-align.ll | 2 +- llvm/test/Transforms/Inline/byval-align.ll | 2 +- llvm/test/Transforms/Inline/byval-tail-call.ll | 1 - llvm/test/Transforms/Inline/byval.ll | 4 ++-- llvm/test/Transforms/Inline/byval_lifetime.ll | 2 +- llvm/test/Transforms/Inline/call-site-attrs.ll | 2 +- llvm/test/Transforms/Inline/callbr.ll | 2 +- llvm/test/Transforms/Inline/callgraph-update.ll | 2 +- llvm/test/Transforms/Inline/casts.ll | 2 +- llvm/test/Transforms/Inline/cfg_preserve_test.ll | 2 +- llvm/test/Transforms/Inline/comdat-ipo.ll | 2 +- llvm/test/Transforms/Inline/crash-lifetime-marker.ll | 2 +- llvm/test/Transforms/Inline/debug-info-duplicate-calls.ll | 2 +- llvm/test/Transforms/Inline/debug-invoke.ll | 2 +- llvm/test/Transforms/Inline/deopt-bundles.ll | 2 +- llvm/test/Transforms/Inline/deoptimize-intrinsic-attrs.ll | 4 ++-- llvm/test/Transforms/Inline/deoptimize-intrinsic-cconv.ll | 2 +- llvm/test/Transforms/Inline/deoptimize-intrinsic.ll | 2 +- llvm/test/Transforms/Inline/dynamic-alloca-simplified-large.ll | 2 +- llvm/test/Transforms/Inline/dynamic_alloca_test.ll | 2 +- llvm/test/Transforms/Inline/ephemeral.ll | 2 +- llvm/test/Transforms/Inline/exponential-deferred-inlining.ll | 2 +- llvm/test/Transforms/Inline/externally_available.ll | 2 +- llvm/test/Transforms/Inline/frameescape.ll | 2 +- llvm/test/Transforms/Inline/guard-intrinsic.ll | 2 +- llvm/test/Transforms/Inline/ignore-debug-info.ll | 4 ++-- llvm/test/Transforms/Inline/inalloca-not-static.ll | 2 +- llvm/test/Transforms/Inline/infinite-loop-two-predecessors.ll | 2 +- llvm/test/Transforms/Inline/inline-assume.ll | 2 +- llvm/test/Transforms/Inline/inline-brunch-funnel.ll | 2 +- llvm/test/Transforms/Inline/inline-byval-bonus.ll | 2 +- llvm/test/Transforms/Inline/inline-call-penalty-option.ll | 4 ++-- .../Transforms/Inline/inline-constexpr-addrspacecast-argument.ll | 2 +- llvm/test/Transforms/Inline/inline-cost-dead-users.ll | 2 +- llvm/test/Transforms/Inline/inline-fast-math-flags.ll | 2 +- llvm/test/Transforms/Inline/inline-funclets.ll | 2 +- llvm/test/Transforms/Inline/inline-indirect-chain.ll | 2 +- llvm/test/Transforms/Inline/inline-indirect.ll | 2 +- llvm/test/Transforms/Inline/inline-invoke-tail.ll | 2 +- llvm/test/Transforms/Inline/inline-invoke-with-asm-call.ll | 2 +- llvm/test/Transforms/Inline/inline-min-legal-vector-width.ll | 2 +- llvm/test/Transforms/Inline/inline-no-builtin-compatible.ll | 2 +- llvm/test/Transforms/Inline/inline-optnone.ll | 2 +- llvm/test/Transforms/Inline/inline-probe-stack.ll | 2 +- llvm/test/Transforms/Inline/inline-ptrtoint-different-sizes.ll | 2 +- llvm/test/Transforms/Inline/inline-recur-stacksize.ll | 4 ++-- llvm/test/Transforms/Inline/inline-remark.ll | 2 +- llvm/test/Transforms/Inline/inline-retainRV-call.ll | 2 +- llvm/test/Transforms/Inline/inline-scalable.ll | 2 +- llvm/test/Transforms/Inline/inline-semantic-interposition.ll | 2 +- llvm/test/Transforms/Inline/inline-skip-use-empty-alloca.ll | 4 ++-- llvm/test/Transforms/Inline/inline-stack-probe-size.ll | 2 +- llvm/test/Transforms/Inline/inline-stacksize.ll | 4 ++-- llvm/test/Transforms/Inline/inline-strictfp.ll | 2 +- llvm/test/Transforms/Inline/inline-tail.ll | 2 +- llvm/test/Transforms/Inline/inline-varargs.ll | 2 +- llvm/test/Transforms/Inline/inline-vla.ll | 2 +- llvm/test/Transforms/Inline/inline_cleanup.ll | 2 +- llvm/test/Transforms/Inline/inline_constprop.ll | 2 +- llvm/test/Transforms/Inline/inline_dbg_declare.ll | 2 +- llvm/test/Transforms/Inline/inline_dce.ll | 4 ++-- llvm/test/Transforms/Inline/inline_inv_group.ll | 2 +- llvm/test/Transforms/Inline/inline_invoke.ll | 2 +- llvm/test/Transforms/Inline/inline_minisize.ll | 2 +- llvm/test/Transforms/Inline/inline_negative_result.ll | 2 +- llvm/test/Transforms/Inline/inline_prune.ll | 2 +- llvm/test/Transforms/Inline/inline_returns_twice.ll | 2 +- llvm/test/Transforms/Inline/inline_ssp.ll | 2 +- llvm/test/Transforms/Inline/inline_stats.ll | 4 ++-- llvm/test/Transforms/Inline/inline_unreachable-2.ll | 2 +- llvm/test/Transforms/Inline/inline_unreachable.ll | 2 +- llvm/test/Transforms/Inline/inlined-loop-metadata-inseltpoison.ll | 2 +- llvm/test/Transforms/Inline/inlined-loop-metadata.ll | 2 +- llvm/test/Transforms/Inline/internal-scc-members.ll | 2 +- llvm/test/Transforms/Inline/invoke-cleanup.ll | 2 +- llvm/test/Transforms/Inline/invoke-cost.ll | 2 +- llvm/test/Transforms/Inline/invoke_test-1.ll | 2 +- llvm/test/Transforms/Inline/invoke_test-2.ll | 2 +- llvm/test/Transforms/Inline/invoke_test-3.ll | 2 +- llvm/test/Transforms/Inline/label-annotation.ll | 2 +- llvm/test/Transforms/Inline/last-call-bonus.ll | 1 - llvm/test/Transforms/Inline/launder.invariant.group.ll | 4 ++-- llvm/test/Transforms/Inline/lifetime-no-datalayout.ll | 2 +- llvm/test/Transforms/Inline/lifetime.ll | 2 +- llvm/test/Transforms/Inline/memprof_inline.ll | 2 +- llvm/test/Transforms/Inline/memprof_inline2.ll | 2 +- llvm/test/Transforms/Inline/nested-inline.ll | 2 +- llvm/test/Transforms/Inline/no-inline-line-tables.ll | 2 +- llvm/test/Transforms/Inline/no-unwind-inline-asm.ll | 2 +- llvm/test/Transforms/Inline/noalias-calls.ll | 2 +- llvm/test/Transforms/Inline/noalias-calls2.ll | 2 +- llvm/test/Transforms/Inline/noalias-cs.ll | 2 +- llvm/test/Transforms/Inline/noalias.ll | 2 +- llvm/test/Transforms/Inline/noalias2.ll | 4 ++-- llvm/test/Transforms/Inline/noalias3.ll | 2 +- llvm/test/Transforms/Inline/noinline-recursive-fn.ll | 2 +- llvm/test/Transforms/Inline/noinline.ll | 2 +- llvm/test/Transforms/Inline/nonnull.ll | 2 +- llvm/test/Transforms/Inline/opaque-ptr.ll | 2 +- .../Transforms/Inline/optimization-remarks-hotness-threshold.ll | 2 +- llvm/test/Transforms/Inline/optimization-remarks-passed-yaml.ll | 2 +- llvm/test/Transforms/Inline/optimization-remarks-with-hotness.ll | 2 +- llvm/test/Transforms/Inline/optimization-remarks-yaml.ll | 8 ++++---- llvm/test/Transforms/Inline/optimization-remarks.ll | 6 +++--- llvm/test/Transforms/Inline/parallel-loop-md-callee.ll | 2 +- llvm/test/Transforms/Inline/parallel-loop-md-merge.ll | 2 +- llvm/test/Transforms/Inline/parallel-loop-md.ll | 2 +- llvm/test/Transforms/Inline/partial-inline-act.ll | 2 +- llvm/test/Transforms/Inline/pr21206.ll | 2 +- llvm/test/Transforms/Inline/pr26698.ll | 2 +- llvm/test/Transforms/Inline/pr33637.ll | 2 +- llvm/test/Transforms/Inline/pr48209.ll | 2 +- llvm/test/Transforms/Inline/pr50270.ll | 2 +- llvm/test/Transforms/Inline/pr50589.ll | 2 +- llvm/test/Transforms/Inline/pr53206.ll | 2 +- llvm/test/Transforms/Inline/profile-meta.ll | 2 +- llvm/test/Transforms/Inline/ptr-diff.ll | 4 ++-- llvm/test/Transforms/Inline/recursive.ll | 2 +- llvm/test/Transforms/Inline/redundant-loads.ll | 2 +- llvm/test/Transforms/Inline/ret_attr_update.ll | 2 +- llvm/test/Transforms/Inline/switch.ll | 2 +- llvm/test/Transforms/Inline/unwind-inline-asm.ll | 2 +- llvm/test/Transforms/Inline/vector-bonus.ll | 2 +- llvm/test/Transforms/Inline/vector-no-bonus.ll | 2 +- llvm/test/Transforms/Inline/zero-cost.ll | 2 +- 185 files changed, 209 insertions(+), 211 deletions(-) diff --git a/llvm/test/Transforms/Inline/2003-09-14-InlineValue.ll b/llvm/test/Transforms/Inline/2003-09-14-InlineValue.ll index 4f1f61b..9f2dd57 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 9a5fcae..1a2085d4d 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 2311cda..038ba8e 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 ce7d1fb..60fe0fe 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 4a80d37..f071d0b 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 62a7594..4e20d60a 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 866327f..12b9be8 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 38b3cdd..ea7c74a 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 064cda6..a1519db 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 2930aec..70ff6e7 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 902b53b..c34e9a5 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 2c4341c..c61419e 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 0b6e119..1372592 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 f452907..50edbee 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 0515289..c575bbc 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 04095c0..6f0d89a 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 7d191d3..929d3c6 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 af87ff6..636f3c6 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 e923597..124acc3 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 63999f5..4439891 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 fd5929d..34d2bc8 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 edf36d6..4e7074e 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 9dcfaf8..bdc9e63 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 c355388..3e9d55d 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(* %a) { entry: diff --git a/llvm/test/Transforms/Inline/AArch64/switch.ll b/llvm/test/Transforms/Inline/AArch64/switch.ll index 154956e..5012e14 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 cf91d93..912ae73 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 f25904e..88fc2a3 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 cfb08a9..64ab45d 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 7de6095..b867f94 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 bb0334e..d9f1adb 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 7170cc8..ed63486e 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 d82c581..2531dd2 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 fb0e19f..f860b03 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 d7aa65d..825053e 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 3b0cfb5..36fbab0 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 0f05ec6..200950a 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 5bbecd2..444b736f 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 a4717bc..de89d14 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 3b3625c..aea97fd 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 8438d16..72e2b3f 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 86b005c..ccc5bfd 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 f7a4094..989b637 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 f828f7a..5b8eabc 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 d5a3aa1..3a30980 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 bffda38..0a3b2b6 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 8661c53..ccd58c8 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 d084635..528e8a5 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 a032544..bd05cff 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 fa04a77..b0a145d 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 ce08c9b..529f947 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 5565c7a..76a34d4 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 f3a5184..bd2e918 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 c5c2ce1..81e7089 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 1dbe996..61e2a7d 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 92649a6..71b6ba8 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 cd07139..5712ecc 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 10dc001..3cacda9 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 b71dafe..8abcde0 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 e668013..6595f54 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 9760667..37419af 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 4a94bd8..92b1639 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 4788760..045b17c 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 c2b814c..4d6ef5b 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 ea8aef3..0fd6ada 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 ; different 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 3d9b2c2..c6f7f82 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 50af344..19b062e 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 383f1f0..e31f038 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 1a1799e..94a2b2c 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 88fc804..b4e0150 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 c5b6b1b..103bc0d 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 a840a0e..0551068 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 9448353..daa2402 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 ae845e7..a4c4134 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 a1c27b0..9867bb7 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 3e3c52f..57175fa 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 fa92ce2..4d47722 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 4e2c3fe..60f5697 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 3d84bfc..30c5e48 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 fd5b40c..5579909b 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 1c17c7c..2716d43 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 b25d1e0..11edfbb 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 3cb347d..42697c4 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 0785dab..76e030a 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 ca96a33..7d0f370 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 76d683d..467e81c 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 60e9677..7ccf7e8 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 1a6dd75..a5d7f55 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 aa07315..e41d37d 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 42b3deb..42952bc 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 567abc6..263f404 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 255d1c6..c27c964 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 d443602..ec8464f 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 37f180d..cbf4af7 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 d340398..5dba308 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 912b6df..0c446c1 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 4093103..dc67ffc 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 46b62da..4377c32 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 f6eb528..c8f01b4 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 d85ef50f..9e77cd6 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 3b4ba19..da767f1 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 ec72741..6746fc2 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 2568cef..b9c0bc9 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 475ef76..b8f9a23 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 bddee16..97447ad 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-different-sizes.ll b/llvm/test/Transforms/Inline/inline-ptrtoint-different-sizes.ll index 818792f..5bcc966 100644 --- a/llvm/test/Transforms/Inline/inline-ptrtoint-different-sizes.ll +++ b/llvm/test/Transforms/Inline/inline-ptrtoint-different-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 ac4bb41..c68fa82 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 bfb78c9..49e597b 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 7746638..d757bd0 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 756f556..7cab4e0 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 234136e..b9e3d3e 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 48545f1..ba9d269 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 d24da46..e200ad3 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 a71a2d0..f2fef0c 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 f6566fc..bc42faf 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 dbb2ae6..f5d9671 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 6fbcd12..a3f8593 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 92361a3..750543e 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 344d900..85d63e6 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 ; [#uses=1] diff --git a/llvm/test/Transforms/Inline/inline_constprop.ll b/llvm/test/Transforms/Inline/inline_constprop.ll index f5c82eec..0b1872d 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 bfbfb8e..5a3a313 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 97d9f3f..8ac074d 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 c33048d..4346bb3 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 8dfb170..8f95cf1 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 e4bc9bc..c19b94f 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 8dd185c..9b116c4 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 c4c5c0c..6be268a 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 c1f31d6..9a57af09 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 a4f73f4..5ae2420 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 25933b1..93c90c7 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 8259995..703cd43 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 b23ddc8..9699ff6 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 60c2f42..b054852 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 29129fe..1ca9445 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 c12ff6c..bead4bb 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 1ba4e87..bc9385b 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 fb60d42..aff5967 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 4e16d25..55d6a2b 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 ac1822b..6282ff9 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 cf0866e..b7d2f91 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 9d471f6..bed3c83 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 d1c466b..550d1b1 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,loop-unroll),require,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 015ebe6..ccd722f 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 5d1872c..f2dfe9d 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 c470913..c82cd41 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 8401367..c0300e0 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 14c4a21..edd722d 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 ed068c3..fb8a7bc 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 b20f6b7..f0acde1 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 4e93990..f1a80bd 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 aca1364..e6fc770 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 fa105ef..6148e50 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 edc0b87..f534fca 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 11e843f..b85e902 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 eb280a1..451d7b2 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 b94cbd6a..2b73e41 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 2b1851b..862eadd 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 7667114..936d46f 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 8fe86dc..7d7a68d 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 2d22cac..5c301dd 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 759b23d..3021935 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 69fec03..b65ed66 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 22a1293..342fbc2 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 d1b44d8..5aa953f 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 a3081a8..bdcfb12 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 4a87c00..41d7530 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 a53efb7..26ccb7f 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 a55392d..a13728b 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 27e7191..b29e929 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 778c436..b9293aa 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 6d5873f..a0bd6a5 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 315feca..48c2b49 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 94d33be..0b3f22c 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 be7c337..ff06f78 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 ba7ed23..8dcd1c0 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 b7790e6..e8d133c 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 3c967d6..79434cd 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 5ad3994..8dede32 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 cbdf86b..9a79932 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 176f605..591e989 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 a6ab988..bfe4b04 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 83f0192..8d3a2e3 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 5aad052..cb76192 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 567ff02..e406a5c 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 d20e1ae..61340bf 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 6f5348f..7e2d33d 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() { -- 2.7.4