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

index 4f1f61b..9f2dd57 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output
+; RUN: opt < %s -passes=inline -disable-output
 
 declare i32 @External()
 
index 9a5fcae..1a2085d 100644 (file)
@@ -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:
index 2311cda..038ba8e 100644 (file)
@@ -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:
index ce7d1fb..60fe0fe 100644 (file)
@@ -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:
index 4a80d37..f071d0b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output
+; RUN: opt < %s -passes=inline -disable-output
 
 define i32 @reload() {
 reloadentry:
index 62a7594..4e20d60 100644 (file)
@@ -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
index 866327f..12b9be8 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -inline -disable-output
+; RUN: opt < %s -passes=inline -disable-output
 
 define i32 @test() {
         unreachable
index 38b3cdd..ea7c74a 100644 (file)
@@ -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
 
index 064cda6..a1519db 100644 (file)
@@ -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.
index 2930aec..70ff6e7 100644 (file)
@@ -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()
index 902b53b..c34e9a5 100644 (file)
@@ -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 {
index 2c4341c..c61419e 100644 (file)
@@ -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.
 
index 0b6e119..1372592 100644 (file)
@@ -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 }>
index f452907..50edbee 100644 (file)
@@ -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
index 0515289..c575bbc 100644 (file)
@@ -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"
index 04095c0..6f0d89a 100644 (file)
@@ -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"
index 7d191d3..929d3c6 100644 (file)
@@ -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"
index af87ff6..636f3c6 100644 (file)
@@ -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.
 
index e923597..124acc3 100644 (file)
@@ -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"
index 63999f5..4439891 100644 (file)
@@ -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"
index fd5929d..34d2bc8 100644 (file)
@@ -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"
index edf36d6..4e7074e 100644 (file)
@@ -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";
 
index 9dcfaf8..bdc9e63 100644 (file)
@@ -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()
 
index c355388..3e9d55d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -mtriple=aarch64--linux-gnu -mattr=+sve < %s -inline -S | FileCheck %s
+; RUN: opt -mtriple=aarch64--linux-gnu -mattr=+sve < %s -passes=inline -S | FileCheck %s
 
 define void @bar(<vscale x 2 x i64>* %a) {
 entry:
index 154956e..5012e14 100644 (file)
@@ -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) {
index cf91d93..912ae73 100644 (file)
@@ -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"
index f25904e..88fc2a3 100644 (file)
@@ -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 {
index cfb08a9..64ab45d 100644 (file)
@@ -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 {
index 7de6095..b867f94 100644 (file)
@@ -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 {
index bb0334e..d9f1adb 100644 (file)
@@ -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) {
index 7170cc8..ed63486 100644 (file)
@@ -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() {
index d82c581..2531dd2 100644 (file)
@@ -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 {
index fb0e19f..f860b03 100644 (file)
@@ -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(
index d7aa65d..825053e 100644 (file)
@@ -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
index 3b0cfb5..36fbab0 100644 (file)
@@ -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 {
index 0f05ec6..200950a 100644 (file)
@@ -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.
 
index 5bbecd2..444b736 100644 (file)
@@ -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
index a4717bc..de89d14 100644 (file)
@@ -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"
index 3b3625c..aea97fd 100644 (file)
@@ -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"
index 8438d16..72e2b3f 100644 (file)
@@ -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"
index 86b005c..ccc5bfd 100644 (file)
@@ -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() {
index f7a4094..989b637 100644 (file)
@@ -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"
index f828f7a..5b8eabc 100644 (file)
@@ -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.
index d5a3aa1..3a30980 100644 (file)
@@ -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.
 
index bffda38..0a3b2b6 100644 (file)
@@ -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"
index 8661c53..ccd58c8 100644 (file)
@@ -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
 
index d084635..528e8a5 100644 (file)
@@ -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
index a032544..bd05cff 100644 (file)
@@ -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
index fa04a77..b0a145d 100644 (file)
@@ -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
index ce08c9b..529f947 100644 (file)
@@ -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
 
index 5565c7a..76a34d4 100644 (file)
@@ -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) {
index f3a5184..bd2e918 100644 (file)
@@ -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"
 
index c5c2ce1..81e7089 100644 (file)
@@ -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"
index 1dbe996..61e2a7d 100644 (file)
@@ -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();
index 92649a6..71b6ba8 100644 (file)
@@ -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
 }
index cd07139..5712ecc 100644 (file)
@@ -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) {
index 10dc001..3cacda9 100644 (file)
@@ -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.
index b71dafe..8abcde0 100644 (file)
@@ -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 }
 
index e668013..6595f54 100644 (file)
@@ -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
index 9760667..37419af 100644 (file)
@@ -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
 
index 4a94bd8..92b1639 100644 (file)
@@ -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"
 
index 4788760..045b17c 100644 (file)
@@ -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"
 
index c2b814c..4d6ef5b 100644 (file)
@@ -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
 
index ea8aef3..0fd6ada 100644 (file)
@@ -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"
 
index 3d9b2c2..c6f7f82 100644 (file)
@@ -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
index 50af344..19b062e 100644 (file)
@@ -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
index 383f1f0..e31f038 100644 (file)
@@ -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
 
index 1a1799e..94a2b2c 100644 (file)
@@ -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()
 
index 88fc804..b4e0150 100644 (file)
@@ -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
 
index c5b6b1b..103bc0d 100644 (file)
@@ -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
index a840a0e..0551068 100644 (file)
@@ -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
 
index 9448353..daa2402 100644 (file)
@@ -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
 
index ae845e7..a4c4134 100644 (file)
@@ -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
index a1c27b0..9867bb7 100644 (file)
@@ -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
 
index 3e3c52f..57175fa 100644 (file)
@@ -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()
index fa92ce2..4d47722 100644 (file)
@@ -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" }
index 4e2c3fe..60f5697 100644 (file)
@@ -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(...)
 
index 3d84bfc..30c5e48 100644 (file)
@@ -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(...)
index fd5b40c..5579909 100644 (file)
@@ -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"
 
index 1c17c7c..2716d43 100644 (file)
@@ -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
index b25d1e0..11edfbb 100644 (file)
@@ -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
index 3cb347d..42697c4 100644 (file)
@@ -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()
 
index 0785dab..76e030a 100644 (file)
@@ -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
index ca96a33..7d0f370 100644 (file)
@@ -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
 
index 76d683d..467e81c 100644 (file)
@@ -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, ...)
 
index 60e9677..7ccf7e8 100644 (file)
@@ -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
 ;
index 1a6dd75..a5d7f55 100644 (file)
@@ -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
index aa07315..e41d37d 100644 (file)
@@ -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:
index 42b3deb..42952bc 100644 (file)
@@ -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
 
index 567abc6..263f404 100644 (file)
@@ -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"
index 255d1c6..c27c964 100644 (file)
@@ -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
 
index d443602..ec8464f 100644 (file)
@@ -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()
 
index 37f180d..cbf4af7 100644 (file)
@@ -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
 
index d340398..5dba308 100644 (file)
@@ -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.
index 912b6df..0c446c1 100644 (file)
@@ -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.
index 4093103..dc67ffc 100644 (file)
@@ -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()
index 46b62da..4377c32 100644 (file)
@@ -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() {
index f6eb528..c8f01b4 100644 (file)
@@ -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)
index d85ef50..9e77cd6 100644 (file)
@@ -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) {
index 3b4ba19..da767f1 100644 (file)
@@ -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"
 
index ec72741..6746fc2 100644 (file)
@@ -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
index 2568cef..b9c0bc9 100644 (file)
@@ -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
index 475ef76..b8f9a23 100644 (file)
@@ -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.
index bddee16..97447ad 100644 (file)
@@ -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
index 818792f..5bcc966 100644 (file)
@@ -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
index ac4bb41..c68fa82 100644 (file)
@@ -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]*)
 
index bfb78c9..49e597b 100644 (file)
@@ -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.
 
index 7746638..d757bd0 100644 (file)
@@ -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()
index 756f556..7cab4e0 100644 (file)
@@ -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
index 234136e..b9e3d3e 100644 (file)
@@ -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
index 48545f1..ba9d269 100644 (file)
@@ -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
index d24da46..e200ad3 100644 (file)
@@ -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
index a71a2d0..f2fef0c 100644 (file)
@@ -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]*)
 
index f6566fc..bc42faf 100644 (file)
@@ -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.
index dbb2ae6..f5d9671 100644 (file)
@@ -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
index 6fbcd12..a3f8593 100644 (file)
@@ -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)
index 92361a3..750543e 100644 (file)
@@ -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
 
index 344d900..85d63e6 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that the inliner doesn't leave around dead allocas, and that it folds
 ; uncond branches away after it is done specializing.
 
-; RUN: opt < %s -inline -S | FileCheck %s
+; RUN: opt < %s -passes=inline -S | FileCheck %s
 ; RUN: opt < %s -passes='cgscc(inline)' -S | FileCheck %s
 
 @A = weak global i32 0         ; <i32*> [#uses=1]
index f5c82ee..0b1872d 100644 (file)
@@ -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) {
index bfbfb8e..5a3a313 100644 (file)
@@ -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
index 97d9f3f..8ac074d 100644 (file)
@@ -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) {
index c33048d..4346bb3 100644 (file)
@@ -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"
index 8dfb170..8f95cf1 100644 (file)
@@ -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
index e4bc9bc..c19b94f 100644 (file)
@@ -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
 
index 8dd185c..9b116c4 100644 (file)
@@ -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
 
index c4c5c0c..6be268a 100644 (file)
@@ -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) {
index c1f31d6..9a57af0 100644 (file)
@@ -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,
index a4f73f4..5ae2420 100644 (file)
@@ -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.
 
index 25933b1..93c90c7 100644 (file)
@@ -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
index 8259995..703cd43 100644 (file)
@@ -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
index b23ddc8..9699ff6 100644 (file)
@@ -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
index 60c2f42..b054852 100644 (file)
@@ -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]+]]}
index 29129fe..1ca9445 100644 (file)
@@ -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]+]]}
index c12ff6c..bead4bb 100644 (file)
@@ -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
 
index 1ba4e87..bc9385b 100644 (file)
@@ -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
 
index fb60d42..aff5967 100644 (file)
@@ -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"
index 4e16d25..55d6a2b 100644 (file)
@@ -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
 
index ac1822b..6282ff9 100644 (file)
@@ -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()
 
index cf0866e..b7d2f91 100644 (file)
@@ -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
 
index 9d471f6..bed3c83 100644 (file)
@@ -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
 
index d1c466b..550d1b1 100644 (file)
@@ -9,7 +9,6 @@
 ; callsites big enough, loop unrolling pass with very high threshold is used to
 ; preprocess the test.
 
-; RUN: opt < %s -loop-unroll -inline -unroll-threshold=15000 -inline-threshold=250 -S | FileCheck %s
 ; RUN: opt < %s -passes='function(require<opt-remark-emit>,loop-unroll),require<profile-summary>,cgscc(inline)' -unroll-threshold=15000 -inline-threshold=250 -S | FileCheck %s
 ; CHECK-LABEL: define internal i32 @bar()
 
index 015ebe6..ccd722f 100644 (file)
@@ -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] }>
 
index 5d1872c..f2dfe9d 100644 (file)
@@ -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)
index c470913..c82cd41 100644 (file)
@@ -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"
 
index 8401367..c0300e0 100644 (file)
@@ -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"
index 14c4a21..edd722d 100644 (file)
@@ -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"
index ed068c3..fb8a7bc 100644 (file)
@@ -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.
index b20f6b7..f0acde1 100644 (file)
@@ -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.
index 4e93990..f1a80bd 100644 (file)
@@ -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"
index aca1364..e6fc770 100644 (file)
@@ -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"
index fa105ef..6148e50 100644 (file)
@@ -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"
index edc0b87..f534fca 100644 (file)
@@ -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"
 
index 11e843f..b85e902 100644 (file)
@@ -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"
 
index eb280a1..451d7b2 100644 (file)
@@ -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"
index b94cbd6..2b73e41 100644 (file)
@@ -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
index 2b1851b..862eadd 100644 (file)
@@ -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"
index 7667114..936d46f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -inline -S < %s | FileCheck %s
+; RUN: opt -passes=inline -S < %s | FileCheck %s
 ; PR6682
 declare void @foo() nounwind
 
index 8fe86dc..7d7a68d 100644 (file)
@@ -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
 
index 2d22cac..5c301dd 100644 (file)
@@ -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(
index 759b23d..3021935 100644 (file)
@@ -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 \
index 69fec03..b65ed66 100644 (file)
@@ -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
index 22a1293..342fbc2 100644 (file)
@@ -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 \
index d1b44d8..5aa953f 100644 (file)
@@ -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.
index a3081a8..bdcfb12 100644 (file)
@@ -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
 }
 
index 4a87c00..41d7530 100644 (file)
@@ -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.
 ;
index a53efb7..26ccb7f 100644 (file)
@@ -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)
index a55392d..a13728b 100644 (file)
@@ -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"
index 27e7191..b29e929 100644 (file)
@@ -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) {
index 778c436..b9293aa 100644 (file)
@@ -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
 
index 6d5873f..a0bd6a5 100644 (file)
@@ -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"
index 315feca..48c2b49 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -inline < %s
+; RUN: opt -passes=inline < %s
 
 define void @patatino() {
 for.cond:
index 94d33be..0b3f22c 100644 (file)
@@ -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*)
 
index be7c337..ff06f78 100644 (file)
@@ -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
index ba7ed23..8dcd1c0 100644 (file)
@@ -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.
index b7790e6..e8d133c 100644 (file)
@@ -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.
index 3c967d6..79434cd 100644 (file)
@@ -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.
index 5ad3994..8dede32 100644 (file)
@@ -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()
index cbdf86b..9a79932 100644 (file)
@@ -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) {
index 176f605..591e989 100644 (file)
@@ -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"
index a6ab988..bfe4b04 100644 (file)
@@ -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
index 83f0192..8d3a2e3 100644 (file)
@@ -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) {
index 5aad052..cb76192 100644 (file)
@@ -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"
index 567ff02..e406a5c 100644 (file)
@@ -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 {
index d20e1ae..61340bf 100644 (file)
@@ -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 {
index 6f5348f..7e2d33d 100644 (file)
@@ -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() {