From a11faeed446882a81e79d780125d93e7199df645 Mon Sep 17 00:00:00 2001 From: Bjorn Pettersson Date: Thu, 1 Dec 2022 21:00:24 +0100 Subject: [PATCH] [test] Switch to use -passes syntax in various test cases --- llvm/test/Analysis/GlobalsModRef/volatile-instrs.ll | 2 +- llvm/test/Analysis/MemorySSA/pr40749.ll | 2 +- llvm/test/Analysis/MemorySSA/pr40754.ll | 2 +- llvm/test/Analysis/MemorySSA/pr41254.ll | 2 +- llvm/test/Analysis/MemorySSA/pr42940.ll | 2 +- llvm/test/Analysis/MemorySSA/pr43320.ll | 2 +- llvm/test/Analysis/MemorySSA/pr43426.ll | 2 +- llvm/test/Analysis/MemorySSA/pr43493.ll | 2 +- llvm/test/Analysis/MemorySSA/pr43540.ll | 2 +- llvm/test/Analysis/MemorySSA/pr43541.ll | 2 +- llvm/test/Analysis/MemorySSA/pr44027.ll | 2 +- llvm/test/Analysis/MemorySSA/pr45976.ll | 2 +- llvm/test/Analysis/MemorySSA/renamephis.ll | 2 +- llvm/test/Analysis/MemorySSA/unreachable.ll | 2 +- llvm/test/Analysis/ScalarEvolution/2007-11-14-SignedAddRec.ll | 2 +- .../Analysis/ScalarEvolution/2011-03-09-ExactNoMaxBECount.ll | 2 +- .../Analysis/ScalarEvolution/expander-replace-congruent-ivs.ll | 2 +- llvm/test/Analysis/ScalarEvolution/ext-antecedent.ll | 2 +- llvm/test/Analysis/ScalarEvolution/guards.ll | 2 +- llvm/test/Analysis/ScalarEvolution/implied-via-addition.ll | 2 +- llvm/test/Analysis/ScalarEvolution/infer-via-ranges.ll | 2 +- .../Analysis/ScalarEvolution/latch-dominating-conditions.ll | 2 +- llvm/test/Analysis/ScalarEvolution/nw-sub-is-not-nw-add.ll | 2 +- llvm/test/Analysis/ScalarEvolution/pr18606-min-zeros.ll | 2 +- llvm/test/Analysis/ScalarEvolution/pr18606.ll | 2 +- llvm/test/Analysis/ScalarEvolution/pr35890.ll | 2 +- llvm/test/Analysis/ScalarEvolution/pr3909.ll | 2 +- llvm/test/Analysis/ScalarEvolution/pr44605.ll | 2 +- llvm/test/Analysis/ScalarEvolution/scev-canonical-mode.ll | 2 +- .../Analysis/ScalarEvolution/scev-expander-incorrect-nowrap.ll | 2 +- llvm/test/Assembler/2002-04-07-HexFloatConstants.ll | 4 ++-- llvm/test/Assembler/2002-04-29-NameBinding.ll | 2 +- llvm/test/Assembler/2002-08-19-BytecodeReader.ll | 2 +- llvm/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll | 2 +- llvm/test/Assembler/2009-02-28-StripOpaqueName.ll | 2 +- llvm/test/CodeGen/ARM/loopvectorize_pr33804.ll | 2 +- llvm/test/CodeGen/Hexagon/autohvx/float-cost.ll | 2 +- llvm/test/CodeGen/Hexagon/autohvx/interleave.ll | 2 +- llvm/test/DebugInfo/Generic/gvn.ll | 2 +- llvm/test/DebugInfo/Generic/instcombine-phi.ll | 2 +- .../Generic/instcombine-replaced-select-with-operand.ll | 2 +- llvm/test/DebugInfo/Generic/store-tail-merge.ll | 4 ++-- llvm/test/DebugInfo/Mips/delay-slot.ll | 2 +- llvm/test/DebugInfo/X86/tail-merge.ll | 2 +- llvm/test/Other/lint.ll | 1 - llvm/test/Other/opt-twice.ll | 2 +- llvm/test/Other/optimization-remarks-lazy-bfi.ll | 7 ------- llvm/test/Other/statistic.ll | 8 ++++---- llvm/test/SymbolRewriter/rewrite.ll | 2 -- llvm/test/Transforms/IndVarSimplify/X86/overflow-intrinsics.ll | 2 +- llvm/test/Transforms/IndVarSimplify/X86/pr24956.ll | 2 +- llvm/test/Transforms/IndVarSimplify/X86/pr25051.ll | 2 +- llvm/test/Transforms/IndVarSimplify/X86/pr25421.ll | 2 +- llvm/test/Transforms/IndVarSimplify/X86/pr25576.ll | 2 +- llvm/test/Transforms/IndVarSimplify/X86/pr26973.ll | 2 +- llvm/test/Transforms/IndVarSimplify/X86/pr28935.ll | 2 +- llvm/test/Transforms/IndVarSimplify/bec-cmp.ll | 2 +- llvm/test/Transforms/IndVarSimplify/canonicalize-cmp.ll | 2 +- llvm/test/Transforms/IndVarSimplify/lrev-existing-umin.ll | 2 +- llvm/test/Transforms/IndVarSimplify/pr24783.ll | 2 +- llvm/test/Transforms/IndVarSimplify/pr25060.ll | 2 +- llvm/test/Transforms/IndVarSimplify/pr32045.ll | 2 +- llvm/test/Transforms/IndVarSimplify/pr50506.ll | 2 +- llvm/test/Transforms/IndVarSimplify/pr55925.ll | 2 +- llvm/test/Transforms/IndVarSimplify/pr56242.ll | 2 +- llvm/test/Transforms/IndVarSimplify/rlev-add-me.ll | 2 +- llvm/test/Transforms/IndVarSimplify/sharpen-range.ll | 2 +- llvm/test/Transforms/IndVarSimplify/shift-range-checks.ll | 1 - llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll | 2 +- llvm/test/Transforms/IndVarSimplify/use-range-metadata.ll | 2 +- llvm/test/Transforms/InferFunctionAttrs/annotate-2.ll | 2 +- llvm/test/Transforms/InferFunctionAttrs/annotate.ll | 9 ++++----- .../InferFunctionAttrs/dereferenceable-inseltpoison.ll | 2 +- llvm/test/Transforms/InferFunctionAttrs/dereferenceable.ll | 2 +- llvm/test/Transforms/InferFunctionAttrs/no-proto.ll | 4 ++-- llvm/test/Transforms/InferFunctionAttrs/nobuiltin.ll | 2 +- llvm/test/Transforms/InferFunctionAttrs/pr30455.ll | 2 +- .../Transforms/Internalize/2009-01-05-InternalizeAliases.ll | 2 +- llvm/test/Transforms/Internalize/comdat.ll | 6 +++--- llvm/test/Transforms/Internalize/externally-initialized.ll | 1 - llvm/test/Transforms/Internalize/globs.ll | 2 +- llvm/test/Transforms/Internalize/lists.ll | 10 +++++----- llvm/test/Transforms/Internalize/local-visibility.ll | 2 +- llvm/test/Transforms/Internalize/stackguard.ll | 1 - llvm/test/Transforms/Internalize/used.ll | 1 - llvm/test/Transforms/Internalize/vcall-visibility.ll | 2 +- .../Transforms/LoopDataPrefetch/AArch64/kryo-large-stride.ll | 2 -- llvm/test/Transforms/LoopDataPrefetch/AArch64/large-stride.ll | 3 --- .../LoopDataPrefetch/AArch64/opt-remark-with-hotness.ll | 4 ---- llvm/test/Transforms/LoopDataPrefetch/AArch64/opt-remark.ll | 3 --- llvm/test/Transforms/LoopDataPrefetch/PowerPC/basic.ll | 1 - llvm/test/Transforms/LoopRotate/2009-01-25-SingleEntryPhi.ll | 2 +- llvm/test/Transforms/LoopRotate/PhiRename-1.ll | 2 +- llvm/test/Transforms/LoopRotate/PhiSelfReference-1.ll | 2 +- llvm/test/Transforms/LoopRotate/RISCV/invalid-cost.ll | 2 +- llvm/test/Transforms/LoopRotate/alloca.ll | 3 +-- llvm/test/Transforms/LoopRotate/basic.ll | 2 +- llvm/test/Transforms/LoopRotate/callbr.ll | 2 +- llvm/test/Transforms/LoopRotate/catchret.ll | 2 +- llvm/test/Transforms/LoopRotate/convergent.ll | 2 +- llvm/test/Transforms/LoopRotate/crash.ll | 2 +- llvm/test/Transforms/LoopRotate/dbg-value-duplicates-2.ll | 2 +- llvm/test/Transforms/LoopRotate/dbg-value-duplicates.ll | 2 +- llvm/test/Transforms/LoopRotate/dbgvalue.ll | 2 +- llvm/test/Transforms/LoopRotate/freeze-crash.ll | 1 - llvm/test/Transforms/LoopRotate/indirectbr.ll | 2 +- llvm/test/Transforms/LoopRotate/loopexitinglatch.ll | 2 +- llvm/test/Transforms/LoopRotate/multiple-deopt-exits.ll | 1 - llvm/test/Transforms/LoopRotate/noalias.ll | 2 +- llvm/test/Transforms/LoopRotate/phi-dbgvalue.ll | 2 +- llvm/test/Transforms/LoopRotate/phi-duplicate.ll | 3 +-- llvm/test/Transforms/LoopRotate/pr22337.ll | 2 +- llvm/test/Transforms/LoopRotate/preserve-mssa.ll | 2 +- llvm/test/Transforms/LoopRotate/vect.omp.persistence.ll | 2 +- llvm/test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll | 2 +- llvm/test/Transforms/LowerSwitch/2003-08-23-EmptySwitch.ll | 2 +- .../Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll | 2 +- .../Transforms/LowerSwitch/2014-06-10-SwitchContiguousOpt.ll | 2 +- .../LowerSwitch/2014-06-11-SwitchDefaultUnreachableOpt.ll | 2 +- llvm/test/Transforms/LowerSwitch/2014-06-23-PHIlowering.ll | 2 +- .../LowerSwitch/condition-phi-unreachable-default.ll | 2 +- llvm/test/Transforms/LowerSwitch/delete-default-block-crash.ll | 2 +- .../Transforms/LowerSwitch/do-not-handle-impossible-values.ll | 2 +- llvm/test/Transforms/LowerSwitch/feature.ll | 1 - .../LowerSwitch/fold-popular-case-to-unreachable-default.ll | 2 +- llvm/test/Transforms/LowerSwitch/phi-in-dead-block.ll | 2 +- llvm/test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll | 2 +- .../Transforms/MemCpyOpt/2011-06-02-CallSlotOverwritten.ll | 2 +- .../Transforms/MemCpyOpt/aa-recursion-assertion-failure.ll | 2 +- llvm/test/Transforms/MemCpyOpt/aggregate-type-crash.ll | 2 +- llvm/test/Transforms/MemCpyOpt/align.ll | 2 +- llvm/test/Transforms/MemCpyOpt/atomic.ll | 2 +- llvm/test/Transforms/MemCpyOpt/byval-readnone.ll | 2 +- llvm/test/Transforms/MemCpyOpt/callslot.ll | 2 +- llvm/test/Transforms/MemCpyOpt/callslot_aa.ll | 2 +- llvm/test/Transforms/MemCpyOpt/callslot_badaa.ll | 2 +- llvm/test/Transforms/MemCpyOpt/callslot_deref.ll | 2 +- llvm/test/Transforms/MemCpyOpt/callslot_noalias.ll | 2 +- llvm/test/Transforms/MemCpyOpt/callslot_throw.ll | 2 +- llvm/test/Transforms/MemCpyOpt/crash.ll | 2 +- llvm/test/Transforms/MemCpyOpt/fca2memcpy.ll | 2 +- llvm/test/Transforms/MemCpyOpt/form-memset.ll | 2 +- llvm/test/Transforms/MemCpyOpt/invariant.start.ll | 2 +- llvm/test/Transforms/MemCpyOpt/lifetime.ll | 2 +- llvm/test/Transforms/MemCpyOpt/load-store-to-memcpy.ll | 2 +- llvm/test/Transforms/MemCpyOpt/loadstore-sret.ll | 2 +- llvm/test/Transforms/MemCpyOpt/memcpy-in-loop.ll | 2 +- llvm/test/Transforms/MemCpyOpt/memcpy-invoke-memcpy.ll | 2 +- llvm/test/Transforms/MemCpyOpt/memcpy-to-memset.ll | 2 +- llvm/test/Transforms/MemCpyOpt/memcpy-undef.ll | 2 +- llvm/test/Transforms/MemCpyOpt/memmove.ll | 2 +- llvm/test/Transforms/MemCpyOpt/memset-memcpy-oversized.ll | 2 +- .../Transforms/MemCpyOpt/memset-memcpy-redundant-memset.ll | 2 +- llvm/test/Transforms/MemCpyOpt/memset-memcpy-to-2x-memset.ll | 2 +- llvm/test/Transforms/MemCpyOpt/merge-into-memset.ll | 2 +- llvm/test/Transforms/MemCpyOpt/mixed-sizes.ll | 2 +- llvm/test/Transforms/MemCpyOpt/no-libcalls.ll | 6 +++--- llvm/test/Transforms/MemCpyOpt/non-integral.ll | 2 +- llvm/test/Transforms/MemCpyOpt/nonlocal-memcpy-memcpy.ll | 2 +- llvm/test/Transforms/MemCpyOpt/nontemporal.ll | 2 +- llvm/test/Transforms/MemCpyOpt/opaque-ptr.ll | 2 +- llvm/test/Transforms/MemCpyOpt/pr37967.ll | 2 +- llvm/test/Transforms/MemCpyOpt/pr54682.ll | 2 +- llvm/test/Transforms/MemCpyOpt/process_store.ll | 2 +- llvm/test/Transforms/MemCpyOpt/profitable-memset.ll | 2 +- llvm/test/Transforms/MemCpyOpt/smaller.ll | 1 - llvm/test/Transforms/MemCpyOpt/sret.ll | 2 +- llvm/test/Transforms/MemCpyOpt/stackrestore.ll | 2 +- .../Transforms/MemCpyOpt/store-to-memset-is-nonzero-type.ll | 2 +- llvm/test/Transforms/MemCpyOpt/store-to-memset.ll | 2 +- llvm/test/Transforms/MemCpyOpt/variable-sized-memcpy-memcpy.ll | 2 +- llvm/test/Transforms/MemCpyOpt/variable-sized-memcpy-uninit.ll | 2 +- llvm/test/Transforms/MemCpyOpt/variable-sized-memset-memcpy.ll | 2 +- llvm/test/Transforms/MemCpyOpt/vscale-crashes.ll | 2 +- llvm/test/Transforms/MemCpyOpt/vscale-memset.ll | 2 +- llvm/test/Transforms/SampleProfile/pseudo-probe-memset.ll | 2 +- llvm/test/Transforms/SpeculativeExecution/spec-fp.ll | 2 +- llvm/test/Transforms/Util/Debugify/loc-only.ll | 4 ++-- llvm/test/Transforms/Util/lowerinvoke-funclet.ll | 2 +- llvm/test/Transforms/Util/lowerswitch.ll | 2 +- 180 files changed, 182 insertions(+), 216 deletions(-) diff --git a/llvm/test/Analysis/GlobalsModRef/volatile-instrs.ll b/llvm/test/Analysis/GlobalsModRef/volatile-instrs.ll index 3ec05df..94ee17d 100644 --- a/llvm/test/Analysis/GlobalsModRef/volatile-instrs.ll +++ b/llvm/test/Analysis/GlobalsModRef/volatile-instrs.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -dse -S | FileCheck %s +; RUN: opt < %s -passes=dse -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-apple-macosx10.8.0" diff --git a/llvm/test/Analysis/MemorySSA/pr40749.ll b/llvm/test/Analysis/MemorySSA/pr40749.ll index 0d8b024..5941aec 100644 --- a/llvm/test/Analysis/MemorySSA/pr40749.ll +++ b/llvm/test/Analysis/MemorySSA/pr40749.ll @@ -1,4 +1,4 @@ -; RUN: opt -licm -verify-memoryssa -S < %s | FileCheck %s +; RUN: opt -passes=licm -verify-memoryssa -S < %s | FileCheck %s ; REQUIRES: asserts target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64" diff --git a/llvm/test/Analysis/MemorySSA/pr40754.ll b/llvm/test/Analysis/MemorySSA/pr40754.ll index 1740588..e871daf 100644 --- a/llvm/test/Analysis/MemorySSA/pr40754.ll +++ b/llvm/test/Analysis/MemorySSA/pr40754.ll @@ -1,4 +1,4 @@ -; RUN: opt -licm -verify-memoryssa -S < %s | FileCheck %s +; RUN: opt -passes=licm -verify-memoryssa -S < %s | FileCheck %s ; REQUIRES: asserts target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64" diff --git a/llvm/test/Analysis/MemorySSA/pr41254.ll b/llvm/test/Analysis/MemorySSA/pr41254.ll index 064e552..701bb85 100644 --- a/llvm/test/Analysis/MemorySSA/pr41254.ll +++ b/llvm/test/Analysis/MemorySSA/pr41254.ll @@ -1,4 +1,4 @@ -; RUN: opt -licm -verify-memoryssa -S < %s | FileCheck %s +; RUN: opt -passes=licm -verify-memoryssa -S < %s | FileCheck %s ; REQUIRES: asserts target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64" diff --git a/llvm/test/Analysis/MemorySSA/pr42940.ll b/llvm/test/Analysis/MemorySSA/pr42940.ll index 3c988f9..f7425b3 100644 --- a/llvm/test/Analysis/MemorySSA/pr42940.ll +++ b/llvm/test/Analysis/MemorySSA/pr42940.ll @@ -1,4 +1,4 @@ -; RUN: opt -licm -verify-memoryssa -S %s | FileCheck %s +; RUN: opt -passes=licm -verify-memoryssa -S %s | FileCheck %s ; REQUIRES: asserts target datalayout = "E-m:e-i1:8:16-i8:8:16-i64:64-f128:64-v128:64-a:8:16-n32:64" diff --git a/llvm/test/Analysis/MemorySSA/pr43320.ll b/llvm/test/Analysis/MemorySSA/pr43320.ll index cc52342..b7298e3 100644 --- a/llvm/test/Analysis/MemorySSA/pr43320.ll +++ b/llvm/test/Analysis/MemorySSA/pr43320.ll @@ -1,4 +1,4 @@ -; RUN: opt -licm -verify-memoryssa -S < %s | FileCheck %s +; RUN: opt -passes=licm -verify-memoryssa -S < %s | FileCheck %s ; REQUIRES: asserts target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" diff --git a/llvm/test/Analysis/MemorySSA/pr43426.ll b/llvm/test/Analysis/MemorySSA/pr43426.ll index f318489..686bbf1 100644 --- a/llvm/test/Analysis/MemorySSA/pr43426.ll +++ b/llvm/test/Analysis/MemorySSA/pr43426.ll @@ -1,4 +1,4 @@ -; RUN: opt -licm -S %s | FileCheck %s +; RUN: opt -passes=licm -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" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Analysis/MemorySSA/pr43493.ll b/llvm/test/Analysis/MemorySSA/pr43493.ll index fb622bd..2bd7bdd 100644 --- a/llvm/test/Analysis/MemorySSA/pr43493.ll +++ b/llvm/test/Analysis/MemorySSA/pr43493.ll @@ -1,4 +1,4 @@ -; RUN: opt -loop-rotate -verify-memoryssa -S %s | FileCheck %s +; RUN: opt -passes=loop-rotate -verify-memoryssa -S %s | FileCheck %s ; REQUIRES: asserts ; CHECK-LABEL: @func_35() diff --git a/llvm/test/Analysis/MemorySSA/pr43540.ll b/llvm/test/Analysis/MemorySSA/pr43540.ll index 36444b8..5396905 100644 --- a/llvm/test/Analysis/MemorySSA/pr43540.ll +++ b/llvm/test/Analysis/MemorySSA/pr43540.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -licm %s | FileCheck %s +; RUN: opt -S -passes=licm %s | FileCheck %s @v_1 = global i8 0, align 1 @v_2 = global i8 0, align 1 diff --git a/llvm/test/Analysis/MemorySSA/pr43541.ll b/llvm/test/Analysis/MemorySSA/pr43541.ll index 3261412..99b2175 100644 --- a/llvm/test/Analysis/MemorySSA/pr43541.ll +++ b/llvm/test/Analysis/MemorySSA/pr43541.ll @@ -1,4 +1,4 @@ -; RUN: opt -gvn-hoist -S < %s | FileCheck %s +; RUN: opt -passes=gvn-hoist -S < %s | FileCheck %s ; REQUIRES: asserts %struct.job_pool.6.7 = type { i32 } diff --git a/llvm/test/Analysis/MemorySSA/pr44027.ll b/llvm/test/Analysis/MemorySSA/pr44027.ll index 6b8b304..55673d3 100644 --- a/llvm/test/Analysis/MemorySSA/pr44027.ll +++ b/llvm/test/Analysis/MemorySSA/pr44027.ll @@ -1,4 +1,4 @@ -; RUN: opt -gvn-hoist -verify-memoryssa -S < %s | FileCheck %s +; RUN: opt -passes=gvn-hoist -verify-memoryssa -S < %s | FileCheck %s ; REQUIRES: asserts 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/Analysis/MemorySSA/pr45976.ll b/llvm/test/Analysis/MemorySSA/pr45976.ll index 52b2792..b04849b 100644 --- a/llvm/test/Analysis/MemorySSA/pr45976.ll +++ b/llvm/test/Analysis/MemorySSA/pr45976.ll @@ -1,4 +1,4 @@ -; RUN: opt -licm -S < %s | FileCheck %s +; RUN: opt -passes=licm -S < %s | FileCheck %s ; REQUIRES: asserts @global1 = external global i64, align 8 diff --git a/llvm/test/Analysis/MemorySSA/renamephis.ll b/llvm/test/Analysis/MemorySSA/renamephis.ll index b9e7de2..ce19d59 100644 --- a/llvm/test/Analysis/MemorySSA/renamephis.ll +++ b/llvm/test/Analysis/MemorySSA/renamephis.ll @@ -1,4 +1,4 @@ -; RUN: opt -licm -verify-memoryssa -S %s | FileCheck %s +; RUN: opt -passes=licm -verify-memoryssa -S %s | FileCheck %s ; REQUIRES: asserts 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/Analysis/MemorySSA/unreachable.ll b/llvm/test/Analysis/MemorySSA/unreachable.ll index c6de66c..208be2f 100644 --- a/llvm/test/Analysis/MemorySSA/unreachable.ll +++ b/llvm/test/Analysis/MemorySSA/unreachable.ll @@ -1,4 +1,4 @@ -; RUN: opt -licm -verify-memoryssa %s -S | FileCheck %s +; RUN: opt -passes=licm -verify-memoryssa %s -S | FileCheck %s ; REQUIRES: asserts ; Ensure verification doesn't fail with unreachable blocks. diff --git a/llvm/test/Analysis/ScalarEvolution/2007-11-14-SignedAddRec.ll b/llvm/test/Analysis/ScalarEvolution/2007-11-14-SignedAddRec.ll index a2850d8..adedd58 100644 --- a/llvm/test/Analysis/ScalarEvolution/2007-11-14-SignedAddRec.ll +++ b/llvm/test/Analysis/ScalarEvolution/2007-11-14-SignedAddRec.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -indvars -S | FileCheck %s +; RUN: opt < %s -passes=indvars -S | FileCheck %s ; PR1798 ; CHECK: printd(i32 1206807378) diff --git a/llvm/test/Analysis/ScalarEvolution/2011-03-09-ExactNoMaxBECount.ll b/llvm/test/Analysis/ScalarEvolution/2011-03-09-ExactNoMaxBECount.ll index 49e944d..1c4f07b 100644 --- a/llvm/test/Analysis/ScalarEvolution/2011-03-09-ExactNoMaxBECount.ll +++ b/llvm/test/Analysis/ScalarEvolution/2011-03-09-ExactNoMaxBECount.ll @@ -1,4 +1,4 @@ -; RUN: opt -indvars < %s +; RUN: opt -passes=indvars < %s ; PR9424: Attempt to use a SCEVCouldNotCompute object! ; The inner loop computes the Step and Start of the outer loop. ; Call that Vexit. The outer End value is max(2,Vexit), because diff --git a/llvm/test/Analysis/ScalarEvolution/expander-replace-congruent-ivs.ll b/llvm/test/Analysis/ScalarEvolution/expander-replace-congruent-ivs.ll index 0adb92d..c776971 100644 --- a/llvm/test/Analysis/ScalarEvolution/expander-replace-congruent-ivs.ll +++ b/llvm/test/Analysis/ScalarEvolution/expander-replace-congruent-ivs.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.11.0" diff --git a/llvm/test/Analysis/ScalarEvolution/ext-antecedent.ll b/llvm/test/Analysis/ScalarEvolution/ext-antecedent.ll index e8d3813..20c3c50 100644 --- a/llvm/test/Analysis/ScalarEvolution/ext-antecedent.ll +++ b/llvm/test/Analysis/ScalarEvolution/ext-antecedent.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Analysis/ScalarEvolution/guards.ll b/llvm/test/Analysis/ScalarEvolution/guards.ll index dd86cc65..da0f3d3 100644 --- a/llvm/test/Analysis/ScalarEvolution/guards.ll +++ b/llvm/test/Analysis/ScalarEvolution/guards.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s ; Check that SCEV is able to recognize and use guards to prove ; conditions gaurding loop entries and backedges. This isn't intended diff --git a/llvm/test/Analysis/ScalarEvolution/implied-via-addition.ll b/llvm/test/Analysis/ScalarEvolution/implied-via-addition.ll index c9c276c..d082a6bb 100644 --- a/llvm/test/Analysis/ScalarEvolution/implied-via-addition.ll +++ b/llvm/test/Analysis/ScalarEvolution/implied-via-addition.ll @@ -1,4 +1,4 @@ -; RUN: opt -indvars -S < %s | FileCheck %s +; RUN: opt -passes=indvars -S < %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Analysis/ScalarEvolution/infer-via-ranges.ll b/llvm/test/Analysis/ScalarEvolution/infer-via-ranges.ll index 3627c3a..8329250 100644 --- a/llvm/test/Analysis/ScalarEvolution/infer-via-ranges.ll +++ b/llvm/test/Analysis/ScalarEvolution/infer-via-ranges.ll @@ -1,4 +1,4 @@ -; RUN: opt -indvars -S < %s | FileCheck %s +; RUN: opt -passes=indvars -S < %s | FileCheck %s define void @infer_via_ranges(i32 *%arr, i32 %n) { ; CHECK-LABEL: @infer_via_ranges diff --git a/llvm/test/Analysis/ScalarEvolution/latch-dominating-conditions.ll b/llvm/test/Analysis/ScalarEvolution/latch-dominating-conditions.ll index 3f6f958..84aaea5 100644 --- a/llvm/test/Analysis/ScalarEvolution/latch-dominating-conditions.ll +++ b/llvm/test/Analysis/ScalarEvolution/latch-dominating-conditions.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s declare void @side_effect(i1) diff --git a/llvm/test/Analysis/ScalarEvolution/nw-sub-is-not-nw-add.ll b/llvm/test/Analysis/ScalarEvolution/nw-sub-is-not-nw-add.ll index 41b07d5..3615a17 100644 --- a/llvm/test/Analysis/ScalarEvolution/nw-sub-is-not-nw-add.ll +++ b/llvm/test/Analysis/ScalarEvolution/nw-sub-is-not-nw-add.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s ; Check that SCEV does not assume sub nuw X Y == add nuw X, -Y define void @f(i32* %loc) { diff --git a/llvm/test/Analysis/ScalarEvolution/pr18606-min-zeros.ll b/llvm/test/Analysis/ScalarEvolution/pr18606-min-zeros.ll index 35a6223..34f34c5 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr18606-min-zeros.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr18606-min-zeros.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s ; CHECK: @test ; CHECK: %5 = add i32 %local_6_, %local_0_ diff --git a/llvm/test/Analysis/ScalarEvolution/pr18606.ll b/llvm/test/Analysis/ScalarEvolution/pr18606.ll index 9402304..22db409 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr18606.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr18606.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s ; CHECK: @main ; CHECK: %mul.lcssa5 = phi i32 [ %a.promoted4, %entry ], [ %mul.30, %for.body3 ] diff --git a/llvm/test/Analysis/ScalarEvolution/pr35890.ll b/llvm/test/Analysis/ScalarEvolution/pr35890.ll index 1b0da66..591e46a 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr35890.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr35890.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -scalar-evolution-max-arith-depth=0 -indvars -S | FileCheck %s +; RUN: opt < %s -scalar-evolution-max-arith-depth=0 -passes=indvars -S | FileCheck %s target datalayout = "e-m:e-i32:64-f80:128-n8:16:32:64-S128-ni:1" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Analysis/ScalarEvolution/pr3909.ll b/llvm/test/Analysis/ScalarEvolution/pr3909.ll index cf7531d..3f62d3b 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr3909.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr3909.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -indvars -disable-output +; RUN: opt < %s -passes=indvars -disable-output ; PR 3909 diff --git a/llvm/test/Analysis/ScalarEvolution/pr44605.ll b/llvm/test/Analysis/ScalarEvolution/pr44605.ll index 4d98d8d..ca068d3 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr44605.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr44605.ll @@ -2,7 +2,7 @@ ; NOTE: Only %local_3_4 is important here. ; All other instructions are needed to lure LLVM into executing ; specific code to trigger a bug. -; RUN: opt < %s -indvars -S | FileCheck %s +; RUN: opt < %s -passes=indvars -S | FileCheck %s define i32 @test() { ; CHECK-LABEL: @test( ; CHECK-NEXT: entry: diff --git a/llvm/test/Analysis/ScalarEvolution/scev-canonical-mode.ll b/llvm/test/Analysis/ScalarEvolution/scev-canonical-mode.ll index c78bec3..18df75e 100644 --- a/llvm/test/Analysis/ScalarEvolution/scev-canonical-mode.ll +++ b/llvm/test/Analysis/ScalarEvolution/scev-canonical-mode.ll @@ -1,6 +1,6 @@ ; PR26529: Check the assumption of IndVarSimplify to do SCEV expansion in literal mode ; instead of CanonicalMode is properly maintained in SCEVExpander::expand. -; RUN: opt -indvars < %s +; RUN: opt -passes=indvars < %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/Analysis/ScalarEvolution/scev-expander-incorrect-nowrap.ll b/llvm/test/Analysis/ScalarEvolution/scev-expander-incorrect-nowrap.ll index 012cad74..64b223b 100644 --- a/llvm/test/Analysis/ScalarEvolution/scev-expander-incorrect-nowrap.ll +++ b/llvm/test/Analysis/ScalarEvolution/scev-expander-incorrect-nowrap.ll @@ -1,4 +1,4 @@ -; RUN: opt -indvars -S < %s | FileCheck %s +; RUN: opt -passes=indvars -S < %s | FileCheck %s declare void @use(i32) declare void @use.i8(i8) diff --git a/llvm/test/Assembler/2002-04-07-HexFloatConstants.ll b/llvm/test/Assembler/2002-04-07-HexFloatConstants.ll index 6bd583e..6b77c59 100644 --- a/llvm/test/Assembler/2002-04-07-HexFloatConstants.ll +++ b/llvm/test/Assembler/2002-04-07-HexFloatConstants.ll @@ -5,8 +5,8 @@ ; of the bug that was causing the Olden Health benchmark to output incorrect ; results! ; -; RUN: opt -instsimplify -S > %t.1 < %s -; RUN: llvm-as < %s | llvm-dis | llvm-as | opt -instsimplify | \ +; RUN: opt -passes=instsimplify -S > %t.1 < %s +; RUN: llvm-as < %s | llvm-dis | llvm-as | opt -passes=instsimplify | \ ; RUN: llvm-dis > %t.2 ; RUN: diff %t.1 %t.2 ; RUN: verify-uselistorder %s diff --git a/llvm/test/Assembler/2002-04-29-NameBinding.ll b/llvm/test/Assembler/2002-04-29-NameBinding.ll index c387c47..b057eaa 100644 --- a/llvm/test/Assembler/2002-04-29-NameBinding.ll +++ b/llvm/test/Assembler/2002-04-29-NameBinding.ll @@ -4,7 +4,7 @@ ; Check by running globaldce, which will remove the constant if there are ; no references to it! ; -; RUN: opt < %s -globaldce -S | \ +; RUN: opt < %s -passes=globaldce -S | \ ; RUN: not grep constant ; ; RUN: verify-uselistorder %s diff --git a/llvm/test/Assembler/2002-08-19-BytecodeReader.ll b/llvm/test/Assembler/2002-08-19-BytecodeReader.ll index 1fd6bb6..53ca7eb 100644 --- a/llvm/test/Assembler/2002-08-19-BytecodeReader.ll +++ b/llvm/test/Assembler/2002-08-19-BytecodeReader.ll @@ -1,7 +1,7 @@ ; Testcase that seems to break the bytecode reader. This comes from the ; "crafty" spec benchmark. ; -; RUN: opt < %s -instcombine | llvm-dis +; RUN: opt < %s -passes=instcombine | llvm-dis ; RUN: verify-uselistorder %s %CHESS_POSITION = type { i32, i32 } diff --git a/llvm/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll b/llvm/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll index 435992c..0c1bc2f 100644 --- a/llvm/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll +++ b/llvm/test/Assembler/2003-08-20-ConstantExprGEP-Fold.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -instcombine -simplifycfg -S | not grep br +; RUN: opt < %s -passes=instcombine,simplifycfg -S | not grep br ; RUN: verify-uselistorder %s @.str_1 = internal constant [6 x i8] c"_Bool\00" ; <[6 x i8]*> [#uses=2] diff --git a/llvm/test/Assembler/2009-02-28-StripOpaqueName.ll b/llvm/test/Assembler/2009-02-28-StripOpaqueName.ll index 614cc57..8076fd3 100644 --- a/llvm/test/Assembler/2009-02-28-StripOpaqueName.ll +++ b/llvm/test/Assembler/2009-02-28-StripOpaqueName.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -strip -S | llvm-as | llvm-dis +; RUN: opt < %s -passes=strip -S | llvm-as | llvm-dis ; RUN: verify-uselistorder %s ; Stripping the name from A should not break references to it. diff --git a/llvm/test/CodeGen/ARM/loopvectorize_pr33804.ll b/llvm/test/CodeGen/ARM/loopvectorize_pr33804.ll index c318a3b..4000a59 100644 --- a/llvm/test/CodeGen/ARM/loopvectorize_pr33804.ll +++ b/llvm/test/CodeGen/ARM/loopvectorize_pr33804.ll @@ -1,4 +1,4 @@ -; RUN: opt -loop-vectorize -S < %s | FileCheck %s +; RUN: opt -passes=loop-vectorize -S < %s | FileCheck %s ; These tests check that we don't crash if vectorizer decides to cast ; a float value to be stored into a pointer type or vice-versa. diff --git a/llvm/test/CodeGen/Hexagon/autohvx/float-cost.ll b/llvm/test/CodeGen/Hexagon/autohvx/float-cost.ll index b550863..eab3895 100644 --- a/llvm/test/CodeGen/Hexagon/autohvx/float-cost.ll +++ b/llvm/test/CodeGen/Hexagon/autohvx/float-cost.ll @@ -1,4 +1,4 @@ -; RUN: opt -march=hexagon -loop-vectorize -hexagon-autohvx -debug-only=loop-vectorize -S < %s 2>&1 | FileCheck %s +; RUN: opt -march=hexagon -passes=loop-vectorize -hexagon-autohvx -debug-only=loop-vectorize -S < %s 2>&1 | FileCheck %s ; REQUIRES: asserts ; Check that the cost model makes vectorization non-profitable. diff --git a/llvm/test/CodeGen/Hexagon/autohvx/interleave.ll b/llvm/test/CodeGen/Hexagon/autohvx/interleave.ll index e8b148c..9ace9e9 100644 --- a/llvm/test/CodeGen/Hexagon/autohvx/interleave.ll +++ b/llvm/test/CodeGen/Hexagon/autohvx/interleave.ll @@ -1,4 +1,4 @@ -; RUN: opt -march=hexagon -hexagon-autohvx -loop-vectorize -S < %s | FileCheck %s +; RUN: opt -march=hexagon -hexagon-autohvx -passes=loop-vectorize -S < %s | FileCheck %s ; Check that the loop has been interleaved. ; CHECK: store <64 x i32> %interleaved.vec diff --git a/llvm/test/DebugInfo/Generic/gvn.ll b/llvm/test/DebugInfo/Generic/gvn.ll index 7dfc96d..ca0f7c6 100644 --- a/llvm/test/DebugInfo/Generic/gvn.ll +++ b/llvm/test/DebugInfo/Generic/gvn.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -gvn -S | FileCheck %s +; RUN: opt < %s -passes=gvn -S | FileCheck %s ; ; Produced at -O2 from: ; int a, b; diff --git a/llvm/test/DebugInfo/Generic/instcombine-phi.ll b/llvm/test/DebugInfo/Generic/instcombine-phi.ll index c328175..8c209b3 100644 --- a/llvm/test/DebugInfo/Generic/instcombine-phi.ll +++ b/llvm/test/DebugInfo/Generic/instcombine-phi.ll @@ -1,4 +1,4 @@ -; RUN: opt -instcombine -S < %s | FileCheck %s +; RUN: opt -passes=instcombine -S < %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/DebugInfo/Generic/instcombine-replaced-select-with-operand.ll b/llvm/test/DebugInfo/Generic/instcombine-replaced-select-with-operand.ll index 8251d71..cc6004c 100644 --- a/llvm/test/DebugInfo/Generic/instcombine-replaced-select-with-operand.ll +++ b/llvm/test/DebugInfo/Generic/instcombine-replaced-select-with-operand.ll @@ -1,4 +1,4 @@ -; RUN: opt -instcombine -S %s | FileCheck %s +; RUN: opt -passes=instcombine -S %s | FileCheck %s ;; Ensure that debug uses of a select are replaced when the select is replaced ;; with one of its operands in InstCombine's replacedSelectWithOperand. diff --git a/llvm/test/DebugInfo/Generic/store-tail-merge.ll b/llvm/test/DebugInfo/Generic/store-tail-merge.ll index 961fdc3..88a0bae 100644 --- a/llvm/test/DebugInfo/Generic/store-tail-merge.ll +++ b/llvm/test/DebugInfo/Generic/store-tail-merge.ll @@ -1,9 +1,9 @@ -; RUN: opt -instcombine -S < %s | FileCheck %s +; RUN: opt -passes=instcombine -S < %s | FileCheck %s ; ; Generated with: ; ; clang -S -gmlt -emit-llvm test.c -o 1.ll -; opt -sroa -S 1.ll -o test.ll +; opt -passes=sroa -S 1.ll -o test.ll ; ; extern int bar(int i); ; extern int bar2(int i); diff --git a/llvm/test/DebugInfo/Mips/delay-slot.ll b/llvm/test/DebugInfo/Mips/delay-slot.ll index 8afc8c5..8637389 100644 --- a/llvm/test/DebugInfo/Mips/delay-slot.ll +++ b/llvm/test/DebugInfo/Mips/delay-slot.ll @@ -1,7 +1,7 @@ ; RUN: llc -filetype=obj -O0 -relocation-model=pic < %s -mtriple mips-unknown-linux-gnu | llvm-dwarfdump -a - | FileCheck %s ; PR19815 -; Generated using clang -target mips-linux-gnu -g test.c -S -o - -flto|opt -sroa -S +; Generated using clang -target mips-linux-gnu -g test.c -S -o - -flto|opt -passes=sroa -S ; test.c: ; ; int foo(int x) { diff --git a/llvm/test/DebugInfo/X86/tail-merge.ll b/llvm/test/DebugInfo/X86/tail-merge.ll index cd5108a..f682200 100644 --- a/llvm/test/DebugInfo/X86/tail-merge.ll +++ b/llvm/test/DebugInfo/X86/tail-merge.ll @@ -1,6 +1,6 @@ ; RUN: llc %s -mtriple=x86_64-unknown-unknown -use-unknown-locations=Enable -o - | FileCheck %s -; Generated with "clang -gline-tables-only -c -emit-llvm -o - | opt -sroa -S" +; Generated with "clang -gline-tables-only -c -emit-llvm -o - | opt -passes=sroa -S" ; from source: ; ; extern int foo(int); diff --git a/llvm/test/Other/lint.ll b/llvm/test/Other/lint.ll index e21285e..c25e624 100644 --- a/llvm/test/Other/lint.ll +++ b/llvm/test/Other/lint.ll @@ -1,4 +1,3 @@ -; RUN: opt -lint -disable-output < %s 2>&1 | FileCheck %s ; RUN: opt -aa-pipeline=basic-aa -passes=lint -disable-output < %s 2>&1 | FileCheck %s target datalayout = "e-p:64:64:64" diff --git a/llvm/test/Other/opt-twice.ll b/llvm/test/Other/opt-twice.ll index 6bff52e..777e723 100644 --- a/llvm/test/Other/opt-twice.ll +++ b/llvm/test/Other/opt-twice.ll @@ -1,7 +1,7 @@ ; The pass here doesn't matter (we use deadargelim), but test ; that the -run-twice options exists, generates output, and ; doesn't crash -; RUN: opt -run-twice -deadargelim -S < %s | FileCheck %s +; RUN: opt -run-twice -passes=deadargelim -S < %s | FileCheck %s ; CHECK: define internal void @test define internal {} @test() { diff --git a/llvm/test/Other/optimization-remarks-lazy-bfi.ll b/llvm/test/Other/optimization-remarks-lazy-bfi.ll index 1597367..b261f9b 100644 --- a/llvm/test/Other/optimization-remarks-lazy-bfi.ll +++ b/llvm/test/Other/optimization-remarks-lazy-bfi.ll @@ -1,12 +1,5 @@ ; Check that BFI is not computed when -pass-remarks-with-hotness is off -; RUN: opt -loop-distribute -enable-loop-distribute -S -pass-remarks-missed=loop-distribute \ -; RUN: -debug-only=block-freq,branch-prob -pass-remarks-with-hotness \ -; RUN: < %s 2>&1 | FileCheck %s --check-prefix=HOTNESS -; RUN: opt -loop-distribute -enable-loop-distribute -S -pass-remarks-missed=loop-distribute \ -; RUN: -debug-only=block-freq,branch-prob \ -; RUN: < %s 2>&1 | FileCheck %s --check-prefix=NO_HOTNESS - ; RUN: opt -passes='require,loop-distribute' -S -pass-remarks-missed=loop-distribute \ ; RUN: -debug-only=block-freq,branch-prob -pass-remarks-with-hotness \ ; RUN: < %s 2>&1 | FileCheck %s --check-prefix=HOTNESS diff --git a/llvm/test/Other/statistic.ll b/llvm/test/Other/statistic.ll index fb51596..72e2e5f 100644 --- a/llvm/test/Other/statistic.ll +++ b/llvm/test/Other/statistic.ll @@ -1,7 +1,7 @@ -; RUN: opt < %s -o /dev/null -instsimplify -stats -stats-json 2>&1 | FileCheck %s --check-prefix=JSON -; RUN: opt < %s -o /dev/null -instsimplify -stats -stats-json -info-output-file %t && FileCheck %s < %t --check-prefix=JSON -; RUN: opt < %s -o /dev/null -instsimplify -stats 2>&1 | FileCheck %s --check-prefix=DEFAULT -; RUN: opt < %s -o /dev/null -instsimplify -stats -info-output-file %t && FileCheck %s < %t --check-prefix=DEFAULT +; RUN: opt < %s -o /dev/null -p=instsimplify -stats -stats-json 2>&1 | FileCheck %s --check-prefix=JSON +; RUN: opt < %s -o /dev/null -p=instsimplify -stats -stats-json -info-output-file %t && FileCheck %s < %t --check-prefix=JSON +; RUN: opt < %s -o /dev/null -p=instsimplify -stats 2>&1 | FileCheck %s --check-prefix=DEFAULT +; RUN: opt < %s -o /dev/null -p=instsimplify -stats -info-output-file %t && FileCheck %s < %t --check-prefix=DEFAULT ; REQUIRES: asserts ; JSON: { diff --git a/llvm/test/SymbolRewriter/rewrite.ll b/llvm/test/SymbolRewriter/rewrite.ll index 0298f18..1fd0b31 100644 --- a/llvm/test/SymbolRewriter/rewrite.ll +++ b/llvm/test/SymbolRewriter/rewrite.ll @@ -1,5 +1,3 @@ -; RUN: opt -mtriple i686-win32 -rewrite-symbols -rewrite-map-file %p/rewrite.map \ -; RUN: %s -o - | llvm-dis | FileCheck %s ; RUN: opt -mtriple i686-win32 -passes='rewrite-symbols' -rewrite-map-file %p/rewrite.map \ ; RUN: %s -o - | llvm-dis | FileCheck %s diff --git a/llvm/test/Transforms/IndVarSimplify/X86/overflow-intrinsics.ll b/llvm/test/Transforms/IndVarSimplify/X86/overflow-intrinsics.ll index 7715abc..5a59e75 100644 --- a/llvm/test/Transforms/IndVarSimplify/X86/overflow-intrinsics.ll +++ b/llvm/test/Transforms/IndVarSimplify/X86/overflow-intrinsics.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %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/IndVarSimplify/X86/pr24956.ll b/llvm/test/Transforms/IndVarSimplify/X86/pr24956.ll index 5868891..68e3e24 100644 --- a/llvm/test/Transforms/IndVarSimplify/X86/pr24956.ll +++ b/llvm/test/Transforms/IndVarSimplify/X86/pr24956.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s ; Check that this test does not crash. diff --git a/llvm/test/Transforms/IndVarSimplify/X86/pr25051.ll b/llvm/test/Transforms/IndVarSimplify/X86/pr25051.ll index a02d539..1376a58 100644 --- a/llvm/test/Transforms/IndVarSimplify/X86/pr25051.ll +++ b/llvm/test/Transforms/IndVarSimplify/X86/pr25051.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.11.0" diff --git a/llvm/test/Transforms/IndVarSimplify/X86/pr25421.ll b/llvm/test/Transforms/IndVarSimplify/X86/pr25421.ll index efb71f9..b5fa27e 100644 --- a/llvm/test/Transforms/IndVarSimplify/X86/pr25421.ll +++ b/llvm/test/Transforms/IndVarSimplify/X86/pr25421.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.11.0" diff --git a/llvm/test/Transforms/IndVarSimplify/X86/pr25576.ll b/llvm/test/Transforms/IndVarSimplify/X86/pr25576.ll index c9ebc47..39034e0 100644 --- a/llvm/test/Transforms/IndVarSimplify/X86/pr25576.ll +++ b/llvm/test/Transforms/IndVarSimplify/X86/pr25576.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %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/IndVarSimplify/X86/pr26973.ll b/llvm/test/Transforms/IndVarSimplify/X86/pr26973.ll index 8bad303..174610d 100644 --- a/llvm/test/Transforms/IndVarSimplify/X86/pr26973.ll +++ b/llvm/test/Transforms/IndVarSimplify/X86/pr26973.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.11.0" diff --git a/llvm/test/Transforms/IndVarSimplify/X86/pr28935.ll b/llvm/test/Transforms/IndVarSimplify/X86/pr28935.ll index 0cfd1d3..b06e958 100644 --- a/llvm/test/Transforms/IndVarSimplify/X86/pr28935.ll +++ b/llvm/test/Transforms/IndVarSimplify/X86/pr28935.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %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/IndVarSimplify/bec-cmp.ll b/llvm/test/Transforms/IndVarSimplify/bec-cmp.ll index 06a7d5e..3084c8c 100644 --- a/llvm/test/Transforms/IndVarSimplify/bec-cmp.ll +++ b/llvm/test/Transforms/IndVarSimplify/bec-cmp.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/IndVarSimplify/canonicalize-cmp.ll b/llvm/test/Transforms/IndVarSimplify/canonicalize-cmp.ll index 7c4bad1..40d255a6 100644 --- a/llvm/test/Transforms/IndVarSimplify/canonicalize-cmp.ll +++ b/llvm/test/Transforms/IndVarSimplify/canonicalize-cmp.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s ; Check that we replace signed comparisons between non-negative values with ; unsigned comparisons if we can. diff --git a/llvm/test/Transforms/IndVarSimplify/lrev-existing-umin.ll b/llvm/test/Transforms/IndVarSimplify/lrev-existing-umin.ll index 6ef7a5c..149d682 100644 --- a/llvm/test/Transforms/IndVarSimplify/lrev-existing-umin.ll +++ b/llvm/test/Transforms/IndVarSimplify/lrev-existing-umin.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s ; Do not rewrite the user outside the loop because we must keep the instruction ; inside the loop due to store. Rewrite doesn't give us any profit. diff --git a/llvm/test/Transforms/IndVarSimplify/pr24783.ll b/llvm/test/Transforms/IndVarSimplify/pr24783.ll index 83b4a53..3f3ec2b 100644 --- a/llvm/test/Transforms/IndVarSimplify/pr24783.ll +++ b/llvm/test/Transforms/IndVarSimplify/pr24783.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" target triple = "powerpc64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/IndVarSimplify/pr25060.ll b/llvm/test/Transforms/IndVarSimplify/pr25060.ll index 25863fff..bd421b9 100644 --- a/llvm/test/Transforms/IndVarSimplify/pr25060.ll +++ b/llvm/test/Transforms/IndVarSimplify/pr25060.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s define i16 @fn1() { ; CHECK-LABEL: @fn1( diff --git a/llvm/test/Transforms/IndVarSimplify/pr32045.ll b/llvm/test/Transforms/IndVarSimplify/pr32045.ll index 31efac3..008301d 100644 --- a/llvm/test/Transforms/IndVarSimplify/pr32045.ll +++ b/llvm/test/Transforms/IndVarSimplify/pr32045.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s ; This is not an IndVarSimplify bug, but the original symptom ; manifested as one. diff --git a/llvm/test/Transforms/IndVarSimplify/pr50506.ll b/llvm/test/Transforms/IndVarSimplify/pr50506.ll index 365d3be..075ee35a 100644 --- a/llvm/test/Transforms/IndVarSimplify/pr50506.ll +++ b/llvm/test/Transforms/IndVarSimplify/pr50506.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s ; This test used to assert when expanding an addrec into a loop without ; preheader. diff --git a/llvm/test/Transforms/IndVarSimplify/pr55925.ll b/llvm/test/Transforms/IndVarSimplify/pr55925.ll index 567737f..5a608df 100644 --- a/llvm/test/Transforms/IndVarSimplify/pr55925.ll +++ b/llvm/test/Transforms/IndVarSimplify/pr55925.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s ; This tests the case where a terminator can be modeled by SCEV, ; because it has a returned attribute. diff --git a/llvm/test/Transforms/IndVarSimplify/pr56242.ll b/llvm/test/Transforms/IndVarSimplify/pr56242.ll index 6afed41..a52b683 100644 --- a/llvm/test/Transforms/IndVarSimplify/pr56242.ll +++ b/llvm/test/Transforms/IndVarSimplify/pr56242.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s declare void @use(i1) diff --git a/llvm/test/Transforms/IndVarSimplify/rlev-add-me.ll b/llvm/test/Transforms/IndVarSimplify/rlev-add-me.ll index 9520f86..5873e25 100644 --- a/llvm/test/Transforms/IndVarSimplify/rlev-add-me.ll +++ b/llvm/test/Transforms/IndVarSimplify/rlev-add-me.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s target datalayout = "n8:16:32:64" @G = external global i32 diff --git a/llvm/test/Transforms/IndVarSimplify/sharpen-range.ll b/llvm/test/Transforms/IndVarSimplify/sharpen-range.ll index e9fac39..c68ed6d 100644 --- a/llvm/test/Transforms/IndVarSimplify/sharpen-range.ll +++ b/llvm/test/Transforms/IndVarSimplify/sharpen-range.ll @@ -1,4 +1,4 @@ -;; RUN: opt -S < %s -indvars | FileCheck %s +;; RUN: opt -S < %s -passes=indvars | FileCheck %s ; RUN: opt -lcssa -loop-simplify -S < %s | opt -S -passes='require,require,require,loop(indvars)' ;; Check if llvm can narrow !range metadata based on loop entry diff --git a/llvm/test/Transforms/IndVarSimplify/shift-range-checks.ll b/llvm/test/Transforms/IndVarSimplify/shift-range-checks.ll index ab4cea2..aa28792 100644 --- a/llvm/test/Transforms/IndVarSimplify/shift-range-checks.ll +++ b/llvm/test/Transforms/IndVarSimplify/shift-range-checks.ll @@ -1,5 +1,4 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S < %s -indvars | FileCheck %s ; RUN: opt -S < %s -passes=indvars | FileCheck %s declare i1 @cond() diff --git a/llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll b/llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll index 3650877..04fb347 100644 --- a/llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll +++ b/llvm/test/Transforms/IndVarSimplify/ult-sub-to-eq.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -indvars < %s | FileCheck %s +; RUN: opt -S -passes=indvars < %s | FileCheck %s ; Provide legal integer types. target datalayout = "n8:16:32:64" diff --git a/llvm/test/Transforms/IndVarSimplify/use-range-metadata.ll b/llvm/test/Transforms/IndVarSimplify/use-range-metadata.ll index 1f01426..596b61c 100644 --- a/llvm/test/Transforms/IndVarSimplify/use-range-metadata.ll +++ b/llvm/test/Transforms/IndVarSimplify/use-range-metadata.ll @@ -1,4 +1,4 @@ -;; RUN: opt -S < %s -indvars | FileCheck %s +;; RUN: opt -S < %s -passes=indvars | FileCheck %s ;; Check if IndVarSimplify understands !range metadata. diff --git a/llvm/test/Transforms/InferFunctionAttrs/annotate-2.ll b/llvm/test/Transforms/InferFunctionAttrs/annotate-2.ll index a990f4d..17b2efb 100644 --- a/llvm/test/Transforms/InferFunctionAttrs/annotate-2.ll +++ b/llvm/test/Transforms/InferFunctionAttrs/annotate-2.ll @@ -3,7 +3,7 @@ ; annotate.ll. ; ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -inferattrs -opaque-pointers -S | FileCheck %s --match-full-lines +; RUN: opt < %s -passes=inferattrs -opaque-pointers -S | FileCheck %s --match-full-lines ; Exercise function declarations. diff --git a/llvm/test/Transforms/InferFunctionAttrs/annotate.ll b/llvm/test/Transforms/InferFunctionAttrs/annotate.ll index e5c61c2..ef8cfd1 100644 --- a/llvm/test/Transforms/InferFunctionAttrs/annotate.ll +++ b/llvm/test/Transforms/InferFunctionAttrs/annotate.ll @@ -1,9 +1,8 @@ -; RUN: opt < %s -mtriple=x86_64-- -inferattrs -S | FileCheck --match-full-lines --check-prefixes=CHECK,CHECK-NOLINUX,CHECK-OPEN,CHECK-UNKNOWN %s ; RUN: opt < %s -mtriple=x86_64-- -passes=inferattrs -S | FileCheck --match-full-lines --check-prefixes=CHECK,CHECK-NOLINUX,CHECK-OPEN,CHECK-UNKNOWN %s -; RUN: opt < %s -mtriple=x86_64-apple-macosx10.8.0 -inferattrs -S | FileCheck --match-full-lines --check-prefixes=CHECK,CHECK-KNOWN,CHECK-NOLINUX,CHECK-OPEN,CHECK-DARWIN %s -; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -inferattrs -S | FileCheck --match-full-lines --check-prefixes=CHECK,CHECK-KNOWN,CHECK-LINUX %s -; RUN: opt < %s -mtriple=nvptx -inferattrs -S | FileCheck --match-full-lines --check-prefixes=CHECK-NOLINUX,CHECK-NVPTX %s -; RUN: opt < %s -mtriple=powerpc-ibm-aix-xcoff -inferattrs -S | FileCheck --match-full-lines --check-prefixes=CHECK-AIX %s +; RUN: opt < %s -mtriple=x86_64-apple-macosx10.8.0 -passes=inferattrs -S | FileCheck --match-full-lines --check-prefixes=CHECK,CHECK-KNOWN,CHECK-NOLINUX,CHECK-OPEN,CHECK-DARWIN %s +; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -passes=inferattrs -S | FileCheck --match-full-lines --check-prefixes=CHECK,CHECK-KNOWN,CHECK-LINUX %s +; RUN: opt < %s -mtriple=nvptx -passes=inferattrs -S | FileCheck --match-full-lines --check-prefixes=CHECK-NOLINUX,CHECK-NVPTX %s +; RUN: opt < %s -mtriple=powerpc-ibm-aix-xcoff -passes=inferattrs -S | FileCheck --match-full-lines --check-prefixes=CHECK-AIX %s declare i32 @__nvvm_reflect(i8*) ; CHECK-NVPTX: declare noundef i32 @__nvvm_reflect(i8* noundef) [[NOFREE_NOUNWIND_READNONE:#[0-9]+]] diff --git a/llvm/test/Transforms/InferFunctionAttrs/dereferenceable-inseltpoison.ll b/llvm/test/Transforms/InferFunctionAttrs/dereferenceable-inseltpoison.ll index ac3245e..f6213e0 100644 --- a/llvm/test/Transforms/InferFunctionAttrs/dereferenceable-inseltpoison.ll +++ b/llvm/test/Transforms/InferFunctionAttrs/dereferenceable-inseltpoison.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -inferattrs -S | FileCheck %s +; RUN: opt < %s -passes=inferattrs -S | FileCheck %s diff --git a/llvm/test/Transforms/InferFunctionAttrs/dereferenceable.ll b/llvm/test/Transforms/InferFunctionAttrs/dereferenceable.ll index e707b88..d79572d 100644 --- a/llvm/test/Transforms/InferFunctionAttrs/dereferenceable.ll +++ b/llvm/test/Transforms/InferFunctionAttrs/dereferenceable.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -inferattrs -S | FileCheck %s +; RUN: opt < %s -passes=inferattrs -S | FileCheck %s diff --git a/llvm/test/Transforms/InferFunctionAttrs/no-proto.ll b/llvm/test/Transforms/InferFunctionAttrs/no-proto.ll index f5e8594..1219073 100644 --- a/llvm/test/Transforms/InferFunctionAttrs/no-proto.ll +++ b/llvm/test/Transforms/InferFunctionAttrs/no-proto.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -mtriple=x86_64-unknown-linux -inferattrs -S | FileCheck --match-full-lines %s -; RUN: opt < %s -mtriple=x86_64-apple-macosx10.8.0 -inferattrs -S | FileCheck --match-full-lines %s +; RUN: opt < %s -mtriple=x86_64-unknown-linux -passes=inferattrs -S | FileCheck --match-full-lines %s +; RUN: opt < %s -mtriple=x86_64-apple-macosx10.8.0 -passes=inferattrs -S | FileCheck --match-full-lines %s ; Check that we don't modify libc functions with invalid prototypes. diff --git a/llvm/test/Transforms/InferFunctionAttrs/nobuiltin.ll b/llvm/test/Transforms/InferFunctionAttrs/nobuiltin.ll index c327648..3c299f0 100644 --- a/llvm/test/Transforms/InferFunctionAttrs/nobuiltin.ll +++ b/llvm/test/Transforms/InferFunctionAttrs/nobuiltin.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -inferattrs < %s | FileCheck %s +; RUN: opt -S -passes=inferattrs < %s | FileCheck %s ; CHECK: Function Attrs: nobuiltin allocsize(0){{$}} ; CHECK: declare i8* @_Znwm(i32) diff --git a/llvm/test/Transforms/InferFunctionAttrs/pr30455.ll b/llvm/test/Transforms/InferFunctionAttrs/pr30455.ll index e12e58b..c8a958f 100644 --- a/llvm/test/Transforms/InferFunctionAttrs/pr30455.ll +++ b/llvm/test/Transforms/InferFunctionAttrs/pr30455.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -inferattrs -S | FileCheck %s +; RUN: opt < %s -mtriple=x86_64-unknown-linux-gnu -passes=inferattrs -S | FileCheck %s %struct.statvfs64 = type { i32 } ; Function Attrs: norecurse uwtable diff --git a/llvm/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll b/llvm/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll index 58f3c1d..8869313 100644 --- a/llvm/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll +++ b/llvm/test/Transforms/Internalize/2009-01-05-InternalizeAliases.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -internalize -internalize-public-api-list main -S | FileCheck %s +; RUN: opt < %s -passes=internalize -internalize-public-api-list main -S | FileCheck %s @A = global i32 0 ; CHECK: @A = internal global i32 0 diff --git a/llvm/test/Transforms/Internalize/comdat.ll b/llvm/test/Transforms/Internalize/comdat.ll index c4d8611..05ea07a 100644 --- a/llvm/test/Transforms/Internalize/comdat.ll +++ b/llvm/test/Transforms/Internalize/comdat.ll @@ -1,8 +1,8 @@ -; RUN: opt < %s -mtriple=x86_64 -internalize -internalize-public-api-list main -internalize-public-api-list c1 -internalize-public-api-list c2 \ +; RUN: opt < %s -mtriple=x86_64 -passes=internalize -internalize-public-api-list main -internalize-public-api-list c1 -internalize-public-api-list c2 \ ; RUN: -internalize-public-api-list c3 -internalize-public-api-list c4 -S | FileCheck %s --check-prefixes=CHECK,NODUP -; RUN: opt < %s -mtriple=x86_64-windows -internalize -internalize-public-api-list main -internalize-public-api-list c1 -internalize-public-api-list c2 \ +; RUN: opt < %s -mtriple=x86_64-windows -passes=internalize -internalize-public-api-list main -internalize-public-api-list c1 -internalize-public-api-list c2 \ ; RUN: -internalize-public-api-list c3 -internalize-public-api-list c4 -S | FileCheck %s --check-prefixes=CHECK,NODUP -; RUN: opt < %s -mtriple=wasm32 -internalize -internalize-public-api-list main -internalize-public-api-list c1 -internalize-public-api-list c2 \ +; RUN: opt < %s -mtriple=wasm32 -passes=internalize -internalize-public-api-list main -internalize-public-api-list c1 -internalize-public-api-list c2 \ ; RUN: -internalize-public-api-list c3 -internalize-public-api-list c4 -S | FileCheck %s --check-prefixes=CHECK,WASM $c1 = comdat any diff --git a/llvm/test/Transforms/Internalize/externally-initialized.ll b/llvm/test/Transforms/Internalize/externally-initialized.ll index 4c24e53..e5f3070 100644 --- a/llvm/test/Transforms/Internalize/externally-initialized.ll +++ b/llvm/test/Transforms/Internalize/externally-initialized.ll @@ -1,4 +1,3 @@ -; RUN: opt < %s -internalize -S | FileCheck %s ; RUN: opt < %s -passes=internalize -S | FileCheck %s ; CHECK: @G0 diff --git a/llvm/test/Transforms/Internalize/globs.ll b/llvm/test/Transforms/Internalize/globs.ll index d65c8391..47a2828 100644 --- a/llvm/test/Transforms/Internalize/globs.ll +++ b/llvm/test/Transforms/Internalize/globs.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -internalize -internalize-public-api-list 'bar?,_*,*_,[ab]' -S | FileCheck %s +; RUN: opt < %s -passes=internalize -internalize-public-api-list 'bar?,_*,*_,[ab]' -S | FileCheck %s ; CHECK: @foo = internal global @foo = global i32 0 diff --git a/llvm/test/Transforms/Internalize/lists.ll b/llvm/test/Transforms/Internalize/lists.ll index 548c8aa..df408f9 100644 --- a/llvm/test/Transforms/Internalize/lists.ll +++ b/llvm/test/Transforms/Internalize/lists.ll @@ -1,17 +1,17 @@ ; No arguments means internalize everything -; RUN: opt < %s -internalize -S | FileCheck --check-prefix=ALL %s +; RUN: opt < %s -passes=internalize -S | FileCheck --check-prefix=ALL %s ; Non-existent files should be treated as if they were empty (so internalize ; everything) -; RUN: opt < %s -internalize -internalize-public-api-file /nonexistent/file 2> /dev/null -S | FileCheck --check-prefix=ALL %s +; RUN: opt < %s -passes=internalize -internalize-public-api-file /nonexistent/file 2> /dev/null -S | FileCheck --check-prefix=ALL %s ; Internalize all but foo and j -; RUN: opt < %s -internalize -internalize-public-api-list foo -internalize-public-api-list j -S | FileCheck --check-prefix=FOO_AND_J %s +; RUN: opt < %s -passes=internalize -internalize-public-api-list foo -internalize-public-api-list j -S | FileCheck --check-prefix=FOO_AND_J %s -; RUN: opt < %s -S -internalize -internalize-public-api-list bar -internalize-public-api-list foo -internalize-public-api-file /nonexistent/file 2> /dev/null | FileCheck --check-prefix=FOO_AND_BAR %s +; RUN: opt < %s -S -passes=internalize -internalize-public-api-list bar -internalize-public-api-list foo -internalize-public-api-file /nonexistent/file 2> /dev/null | FileCheck --check-prefix=FOO_AND_BAR %s ; -file and -list options should be merged, the apifile contains foo and j -; RUN: opt < %s -internalize -internalize-public-api-list bar -internalize-public-api-file %S/apifile -S | FileCheck --check-prefix=FOO_J_AND_BAR %s +; RUN: opt < %s -passes=internalize -internalize-public-api-list bar -internalize-public-api-file %S/apifile -S | FileCheck --check-prefix=FOO_J_AND_BAR %s ; ALL: @i = internal global ; FOO_AND_J: @i = internal global diff --git a/llvm/test/Transforms/Internalize/local-visibility.ll b/llvm/test/Transforms/Internalize/local-visibility.ll index 0d73f21..b341d8a 100644 --- a/llvm/test/Transforms/Internalize/local-visibility.ll +++ b/llvm/test/Transforms/Internalize/local-visibility.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -internalize -S | FileCheck %s +; RUN: opt < %s -passes=internalize -S | FileCheck %s ; Internalized symbols should have default visibility. ; CHECK: @global = global i32 0 diff --git a/llvm/test/Transforms/Internalize/stackguard.ll b/llvm/test/Transforms/Internalize/stackguard.ll index 86fa3f8..2610ded 100644 --- a/llvm/test/Transforms/Internalize/stackguard.ll +++ b/llvm/test/Transforms/Internalize/stackguard.ll @@ -1,5 +1,4 @@ ; __stack_chk_guard and __stack_chk_fail should not be internalized. -; RUN: opt < %s -internalize -S | FileCheck %s ; RUN: opt < %s -passes=internalize -S | FileCheck %s ; RUN: opt -mtriple=powerpc64-ibm-aix-xcoff < %s -passes=internalize -S | FileCheck %s --check-prefix=AIX diff --git a/llvm/test/Transforms/Internalize/used.ll b/llvm/test/Transforms/Internalize/used.ll index 7c1c741..ff6d052 100644 --- a/llvm/test/Transforms/Internalize/used.ll +++ b/llvm/test/Transforms/Internalize/used.ll @@ -1,4 +1,3 @@ -; RUN: opt < %s -internalize -S | FileCheck %s ; RUN: opt < %s -passes=internalize -S | FileCheck %s @llvm.used = appending global [1 x void ()*] [void ()* @f], section "llvm.metadata" diff --git a/llvm/test/Transforms/Internalize/vcall-visibility.ll b/llvm/test/Transforms/Internalize/vcall-visibility.ll index dd44195..ea28aeb 100644 --- a/llvm/test/Transforms/Internalize/vcall-visibility.ll +++ b/llvm/test/Transforms/Internalize/vcall-visibility.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -internalize -S | FileCheck %s +; RUN: opt < %s -passes=internalize -S | FileCheck %s %struct.A = type { i32 (...)** } %struct.B = type { i32 (...)** } diff --git a/llvm/test/Transforms/LoopDataPrefetch/AArch64/kryo-large-stride.ll b/llvm/test/Transforms/LoopDataPrefetch/AArch64/kryo-large-stride.ll index 22cf6a9..69d2fae 100644 --- a/llvm/test/Transforms/LoopDataPrefetch/AArch64/kryo-large-stride.ll +++ b/llvm/test/Transforms/LoopDataPrefetch/AArch64/kryo-large-stride.ll @@ -1,5 +1,3 @@ -; RUN: opt -mcpu=kryo -mtriple=aarch64-gnu-linux -loop-data-prefetch -max-prefetch-iters-ahead=1000 -S < %s | FileCheck %s --check-prefix=LARGE_PREFETCH --check-prefix=ALL -; RUN: opt -mcpu=kryo -mtriple=aarch64-gnu-linux -loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL ; RUN: opt -mcpu=kryo -mtriple=aarch64-gnu-linux -passes=loop-data-prefetch -max-prefetch-iters-ahead=1000 -S < %s | FileCheck %s --check-prefix=LARGE_PREFETCH --check-prefix=ALL ; RUN: opt -mcpu=kryo -mtriple=aarch64-gnu-linux -passes=loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL diff --git a/llvm/test/Transforms/LoopDataPrefetch/AArch64/large-stride.ll b/llvm/test/Transforms/LoopDataPrefetch/AArch64/large-stride.ll index fe956a8..263c9f6 100644 --- a/llvm/test/Transforms/LoopDataPrefetch/AArch64/large-stride.ll +++ b/llvm/test/Transforms/LoopDataPrefetch/AArch64/large-stride.ll @@ -1,6 +1,3 @@ -; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -loop-data-prefetch -max-prefetch-iters-ahead=100 -S < %s | FileCheck %s --check-prefix=LARGE_PREFETCH --check-prefix=ALL -; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL -; RUN: opt -mcpu=generic -mtriple=arm64-apple-ios -loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL ; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -passes=loop-data-prefetch -max-prefetch-iters-ahead=100 -S < %s | FileCheck %s --check-prefix=LARGE_PREFETCH --check-prefix=ALL ; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -passes=loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL ; RUN: opt -mcpu=generic -mtriple=arm64-apple-ios -passes=loop-data-prefetch -S < %s | FileCheck %s --check-prefix=NO_LARGE_PREFETCH --check-prefix=ALL diff --git a/llvm/test/Transforms/LoopDataPrefetch/AArch64/opt-remark-with-hotness.ll b/llvm/test/Transforms/LoopDataPrefetch/AArch64/opt-remark-with-hotness.ll index 6149119..71dbba9 100644 --- a/llvm/test/Transforms/LoopDataPrefetch/AArch64/opt-remark-with-hotness.ll +++ b/llvm/test/Transforms/LoopDataPrefetch/AArch64/opt-remark-with-hotness.ll @@ -1,7 +1,3 @@ -; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -loop-data-prefetch \ -; RUN: -pass-remarks=loop-data-prefetch -S -max-prefetch-iters-ahead=100 \ -; RUN: -pass-remarks-with-hotness \ -; RUN: < %s 2>&1 | FileCheck %s ; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -passes=loop-data-prefetch \ ; RUN: -pass-remarks=loop-data-prefetch -S -max-prefetch-iters-ahead=100 \ ; RUN: -pass-remarks-with-hotness \ diff --git a/llvm/test/Transforms/LoopDataPrefetch/AArch64/opt-remark.ll b/llvm/test/Transforms/LoopDataPrefetch/AArch64/opt-remark.ll index e7d8f5a..91008ca 100644 --- a/llvm/test/Transforms/LoopDataPrefetch/AArch64/opt-remark.ll +++ b/llvm/test/Transforms/LoopDataPrefetch/AArch64/opt-remark.ll @@ -1,6 +1,3 @@ -; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -loop-data-prefetch \ -; RUN: -pass-remarks=loop-data-prefetch -S -max-prefetch-iters-ahead=100 \ -; RUN: < %s 2>&1 | FileCheck %s ; RUN: opt -mcpu=cyclone -mtriple=arm64-apple-ios -passes=loop-data-prefetch \ ; RUN: -pass-remarks=loop-data-prefetch -S -max-prefetch-iters-ahead=100 \ ; RUN: < %s 2>&1 | FileCheck %s diff --git a/llvm/test/Transforms/LoopDataPrefetch/PowerPC/basic.ll b/llvm/test/Transforms/LoopDataPrefetch/PowerPC/basic.ll index 68c75af..6c9153b 100644 --- a/llvm/test/Transforms/LoopDataPrefetch/PowerPC/basic.ll +++ b/llvm/test/Transforms/LoopDataPrefetch/PowerPC/basic.ll @@ -1,4 +1,3 @@ -; RUN: opt -mcpu=a2 -loop-data-prefetch -mtriple=powerpc64le-unknown-linux -enable-ppc-prefetching -S < %s | FileCheck %s ; RUN: opt -mcpu=a2 -passes=loop-data-prefetch -mtriple=powerpc64le-unknown-linux -enable-ppc-prefetching -S < %s | FileCheck %s target datalayout = "E-m:e-i64:64-n32:64" diff --git a/llvm/test/Transforms/LoopRotate/2009-01-25-SingleEntryPhi.ll b/llvm/test/Transforms/LoopRotate/2009-01-25-SingleEntryPhi.ll index b7be94b..4fe3503 100644 --- a/llvm/test/Transforms/LoopRotate/2009-01-25-SingleEntryPhi.ll +++ b/llvm/test/Transforms/LoopRotate/2009-01-25-SingleEntryPhi.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -loop-rotate -verify-dom-info -verify-loop-info -verify-memoryssa -disable-output +; RUN: opt < %s -passes=loop-rotate -verify-dom-info -verify-loop-info -verify-memoryssa -disable-output ; PR3408 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" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/LoopRotate/PhiRename-1.ll b/llvm/test/Transforms/LoopRotate/PhiRename-1.ll index 147c08c..1fd9aad 100644 --- a/llvm/test/Transforms/LoopRotate/PhiRename-1.ll +++ b/llvm/test/Transforms/LoopRotate/PhiRename-1.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -loop-rotate -verify-dom-info -verify-loop-info -verify-memoryssa -S | FileCheck %s +; RUN: opt < %s -passes=loop-rotate -verify-dom-info -verify-loop-info -verify-memoryssa -S | FileCheck %s ; CHECK-NOT: [ {{.}}tmp224 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" diff --git a/llvm/test/Transforms/LoopRotate/PhiSelfReference-1.ll b/llvm/test/Transforms/LoopRotate/PhiSelfReference-1.ll index c97d794..91ff991 100644 --- a/llvm/test/Transforms/LoopRotate/PhiSelfReference-1.ll +++ b/llvm/test/Transforms/LoopRotate/PhiSelfReference-1.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -loop-rotate -verify-dom-info -verify-loop-info -verify-memoryssa -disable-output +; RUN: opt < %s -passes=loop-rotate -verify-dom-info -verify-loop-info -verify-memoryssa -disable-output ; ModuleID = 'PhiSelfReference-1.bc' define void @snrm2(i32 %incx) { diff --git a/llvm/test/Transforms/LoopRotate/RISCV/invalid-cost.ll b/llvm/test/Transforms/LoopRotate/RISCV/invalid-cost.ll index bda8533..f10370d 100644 --- a/llvm/test/Transforms/LoopRotate/RISCV/invalid-cost.ll +++ b/llvm/test/Transforms/LoopRotate/RISCV/invalid-cost.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -loop-rotate -verify-memoryssa < %s | FileCheck %s +; RUN: opt -S -passes=loop-rotate -verify-memoryssa < %s | FileCheck %s ; RUN: opt -S -passes='require,require,loop(loop-rotate)' < %s | FileCheck %s ; Demonstrate handling of invalid costs in LoopRotate. This test uses diff --git a/llvm/test/Transforms/LoopRotate/alloca.ll b/llvm/test/Transforms/LoopRotate/alloca.ll index 5014258..273ba73d 100644 --- a/llvm/test/Transforms/LoopRotate/alloca.ll +++ b/llvm/test/Transforms/LoopRotate/alloca.ll @@ -1,5 +1,4 @@ -; RUN: opt < %s -loop-rotate -S | FileCheck %s -; RUN: opt < %s -loop-rotate -verify-memoryssa -S | FileCheck %s +; RUN: opt < %s -passes=loop-rotate -verify-memoryssa -S | FileCheck %s ; Test alloca in -loop-rotate. diff --git a/llvm/test/Transforms/LoopRotate/basic.ll b/llvm/test/Transforms/LoopRotate/basic.ll index 5f48d66..cae3c7d 100644 --- a/llvm/test/Transforms/LoopRotate/basic.ll +++ b/llvm/test/Transforms/LoopRotate/basic.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -loop-rotate -verify-memoryssa < %s | FileCheck %s +; RUN: opt -S -passes=loop-rotate -verify-memoryssa < %s | FileCheck %s ; RUN: opt -S -passes='require,require,loop(loop-rotate)' < %s | FileCheck %s ; RUN: opt -S -passes='require,require,loop-mssa(loop-rotate)' -verify-memoryssa < %s | FileCheck %s diff --git a/llvm/test/Transforms/LoopRotate/callbr.ll b/llvm/test/Transforms/LoopRotate/callbr.ll index da5f787..d9fbcb4 100644 --- a/llvm/test/Transforms/LoopRotate/callbr.ll +++ b/llvm/test/Transforms/LoopRotate/callbr.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -S -loop-rotate -o - -verify-loop-info -verify-dom-info | FileCheck %s +; RUN: opt < %s -S -passes=loop-rotate -o - -verify-loop-info -verify-dom-info | FileCheck %s @d = external global i64, align 8 @f = external global i32, align 4 diff --git a/llvm/test/Transforms/LoopRotate/catchret.ll b/llvm/test/Transforms/LoopRotate/catchret.ll index 91c1554..f4eb1b5 100755 --- a/llvm/test/Transforms/LoopRotate/catchret.ll +++ b/llvm/test/Transforms/LoopRotate/catchret.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -loop-rotate -verify-memoryssa -S | FileCheck %s +; RUN: opt < %s -passes=loop-rotate -verify-memoryssa -S | FileCheck %s target triple = "x86_64-pc-windows-msvc" diff --git a/llvm/test/Transforms/LoopRotate/convergent.ll b/llvm/test/Transforms/LoopRotate/convergent.ll index 9873324..5374c1c 100644 --- a/llvm/test/Transforms/LoopRotate/convergent.ll +++ b/llvm/test/Transforms/LoopRotate/convergent.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -loop-rotate -verify-memoryssa < %s | FileCheck %s +; RUN: opt -S -passes=loop-rotate -verify-memoryssa < %s | FileCheck %s @e = global i32 10 diff --git a/llvm/test/Transforms/LoopRotate/crash.ll b/llvm/test/Transforms/LoopRotate/crash.ll index 0a16886..0ff0540 100644 --- a/llvm/test/Transforms/LoopRotate/crash.ll +++ b/llvm/test/Transforms/LoopRotate/crash.ll @@ -1,4 +1,4 @@ -; RUN: opt -loop-rotate -disable-output -verify-dom-info -verify-loop-info -verify-memoryssa < %s +; RUN: opt -passes=loop-rotate -disable-output -verify-dom-info -verify-loop-info -verify-memoryssa < %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" target triple = "x86_64-apple-darwin10.0.0" diff --git a/llvm/test/Transforms/LoopRotate/dbg-value-duplicates-2.ll b/llvm/test/Transforms/LoopRotate/dbg-value-duplicates-2.ll index 318d3e6..25896ab 100644 --- a/llvm/test/Transforms/LoopRotate/dbg-value-duplicates-2.ll +++ b/llvm/test/Transforms/LoopRotate/dbg-value-duplicates-2.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -loop-rotate -S | FileCheck %s +; RUN: opt < %s -passes=loop-rotate -S | FileCheck %s define dso_local i16 @main() local_unnamed_addr #0 !dbg !7 { ; CHECK-LABEL: @main( diff --git a/llvm/test/Transforms/LoopRotate/dbg-value-duplicates.ll b/llvm/test/Transforms/LoopRotate/dbg-value-duplicates.ll index d55c024..456f6be 100644 --- a/llvm/test/Transforms/LoopRotate/dbg-value-duplicates.ll +++ b/llvm/test/Transforms/LoopRotate/dbg-value-duplicates.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -loop-rotate -verify-memoryssa < %s | FileCheck %s +; RUN: opt -S -passes=loop-rotate -verify-memoryssa < %s | FileCheck %s source_filename = "/tmp/loop.c" target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.13.0" diff --git a/llvm/test/Transforms/LoopRotate/dbgvalue.ll b/llvm/test/Transforms/LoopRotate/dbgvalue.ll index 4e872d2..a062eb1d 100644 --- a/llvm/test/Transforms/LoopRotate/dbgvalue.ll +++ b/llvm/test/Transforms/LoopRotate/dbgvalue.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -loop-rotate -verify-memoryssa < %s | FileCheck %s +; RUN: opt -S -passes=loop-rotate -verify-memoryssa < %s | FileCheck %s declare void @llvm.dbg.declare(metadata, metadata, metadata) nounwind readnone declare void @llvm.dbg.value(metadata, metadata, metadata) nounwind readnone diff --git a/llvm/test/Transforms/LoopRotate/freeze-crash.ll b/llvm/test/Transforms/LoopRotate/freeze-crash.ll index c2da676..ae631f6 100644 --- a/llvm/test/Transforms/LoopRotate/freeze-crash.ll +++ b/llvm/test/Transforms/LoopRotate/freeze-crash.ll @@ -1,4 +1,3 @@ -; RUN: opt -loop-rotate -disable-output %s ; RUN: opt -passes=loop-rotate -disable-output %s ; Make sure we don't crash on this test. diff --git a/llvm/test/Transforms/LoopRotate/indirectbr.ll b/llvm/test/Transforms/LoopRotate/indirectbr.ll index 3abf0ba..37050a9 100644 --- a/llvm/test/Transforms/LoopRotate/indirectbr.ll +++ b/llvm/test/Transforms/LoopRotate/indirectbr.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -S -loop-rotate -o - -verify-loop-info -verify-dom-info -verify-memoryssa | FileCheck %s +; RUN: opt < %s -S -passes=loop-rotate -o - -verify-loop-info -verify-dom-info -verify-memoryssa | FileCheck %s ; PR5502 define void @z80_do_opcodes() nounwind { diff --git a/llvm/test/Transforms/LoopRotate/loopexitinglatch.ll b/llvm/test/Transforms/LoopRotate/loopexitinglatch.ll index a8f7c0d..2ff5628 100644 --- a/llvm/test/Transforms/LoopRotate/loopexitinglatch.ll +++ b/llvm/test/Transforms/LoopRotate/loopexitinglatch.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -loop-rotate < %s -verify-loop-info -verify-dom-info -verify-memoryssa | FileCheck %s +; RUN: opt -S -passes=loop-rotate < %s -verify-loop-info -verify-dom-info -verify-memoryssa | FileCheck %s target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-a:0:32-n32-S64" target triple = "thumbv8m.base-arm-none-eabi" diff --git a/llvm/test/Transforms/LoopRotate/multiple-deopt-exits.ll b/llvm/test/Transforms/LoopRotate/multiple-deopt-exits.ll index 869d839..e6b12d6 100644 --- a/llvm/test/Transforms/LoopRotate/multiple-deopt-exits.ll +++ b/llvm/test/Transforms/LoopRotate/multiple-deopt-exits.ll @@ -1,5 +1,4 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S < %s -loop-rotate -loop-rotate-multi=true | FileCheck %s ; RUN: opt -S < %s -passes='loop(loop-rotate)' -loop-rotate-multi=true | FileCheck %s ; Test loop rotation with multiple exits, some of them - deoptimizing. diff --git a/llvm/test/Transforms/LoopRotate/noalias.ll b/llvm/test/Transforms/LoopRotate/noalias.ll index 09b5c5f..e85df4d 100644 --- a/llvm/test/Transforms/LoopRotate/noalias.ll +++ b/llvm/test/Transforms/LoopRotate/noalias.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -loop-rotate -verify-memoryssa < %s | FileCheck %s +; RUN: opt -S -passes=loop-rotate -verify-memoryssa < %s | FileCheck %s ; RUN: opt -S -passes='require,require,loop(loop-rotate)' < %s | FileCheck %s ; RUN: opt -S -passes='require,require,loop(loop-rotate)' -verify-memoryssa < %s | FileCheck %s diff --git a/llvm/test/Transforms/LoopRotate/phi-dbgvalue.ll b/llvm/test/Transforms/LoopRotate/phi-dbgvalue.ll index fb54cb8..dfaaa37 100644 --- a/llvm/test/Transforms/LoopRotate/phi-dbgvalue.ll +++ b/llvm/test/Transforms/LoopRotate/phi-dbgvalue.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -loop-rotate -verify-memoryssa < %s | FileCheck %s +; RUN: opt -S -passes=loop-rotate -verify-memoryssa < %s | FileCheck %s ;CHECK-LABEL: func ;CHECK-LABEL: entry diff --git a/llvm/test/Transforms/LoopRotate/phi-duplicate.ll b/llvm/test/Transforms/LoopRotate/phi-duplicate.ll index 292c595..b7ef7b4 100644 --- a/llvm/test/Transforms/LoopRotate/phi-duplicate.ll +++ b/llvm/test/Transforms/LoopRotate/phi-duplicate.ll @@ -1,5 +1,4 @@ -; RUN: opt -S -loop-rotate < %s | FileCheck %s -; RUN: opt -S -loop-rotate -verify-memoryssa < %s | FileCheck %s +; RUN: opt -S -passes=loop-rotate -verify-memoryssa < %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" target triple = "x86_64-apple-darwin10.0" diff --git a/llvm/test/Transforms/LoopRotate/pr22337.ll b/llvm/test/Transforms/LoopRotate/pr22337.ll index bd8659b..9c76a01 100644 --- a/llvm/test/Transforms/LoopRotate/pr22337.ll +++ b/llvm/test/Transforms/LoopRotate/pr22337.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -loop-rotate -verify-memoryssa -S | FileCheck %s +; RUN: opt < %s -passes=loop-rotate -verify-memoryssa -S | FileCheck %s @a = external global i8, align 4 @tmp = global i8* @a diff --git a/llvm/test/Transforms/LoopRotate/preserve-mssa.ll b/llvm/test/Transforms/LoopRotate/preserve-mssa.ll index 542bb7c..f0915ed 100644 --- a/llvm/test/Transforms/LoopRotate/preserve-mssa.ll +++ b/llvm/test/Transforms/LoopRotate/preserve-mssa.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -loop-rotate -verify-memoryssa < %s | FileCheck %s +; RUN: opt -S -passes=loop-rotate -verify-memoryssa < %s | FileCheck %s ; CHECK-LABEL: @multiedge( define void @multiedge() { diff --git a/llvm/test/Transforms/LoopRotate/vect.omp.persistence.ll b/llvm/test/Transforms/LoopRotate/vect.omp.persistence.ll index 767d9093..4465288 100644 --- a/llvm/test/Transforms/LoopRotate/vect.omp.persistence.ll +++ b/llvm/test/Transforms/LoopRotate/vect.omp.persistence.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -loop-rotate -verify-memoryssa -S | FileCheck %s +; RUN: opt < %s -passes=loop-rotate -verify-memoryssa -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/LowerSwitch/2003-05-01-PHIProblem.ll b/llvm/test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll index d143ab0..8cbb532 100644 --- a/llvm/test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll +++ b/llvm/test/Transforms/LowerSwitch/2003-05-01-PHIProblem.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -lowerswitch +; RUN: opt < %s -passes=lowerswitch define void @child(i32 %ct.1) { entry: diff --git a/llvm/test/Transforms/LowerSwitch/2003-08-23-EmptySwitch.ll b/llvm/test/Transforms/LowerSwitch/2003-08-23-EmptySwitch.ll index 61e1dcd..f588947 100644 --- a/llvm/test/Transforms/LowerSwitch/2003-08-23-EmptySwitch.ll +++ b/llvm/test/Transforms/LowerSwitch/2003-08-23-EmptySwitch.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -lowerswitch +; RUN: opt < %s -passes=lowerswitch define void @test() { switch i32 0, label %Next [ diff --git a/llvm/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll b/llvm/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll index 964b07e..069a555 100644 --- a/llvm/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll +++ b/llvm/test/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -lowerswitch -disable-output +; RUN: opt < %s -passes=lowerswitch -disable-output define void @solve() { entry: diff --git a/llvm/test/Transforms/LowerSwitch/2014-06-10-SwitchContiguousOpt.ll b/llvm/test/Transforms/LowerSwitch/2014-06-10-SwitchContiguousOpt.ll index 22173b4..fdda121 100644 --- a/llvm/test/Transforms/LowerSwitch/2014-06-10-SwitchContiguousOpt.ll +++ b/llvm/test/Transforms/LowerSwitch/2014-06-10-SwitchContiguousOpt.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -lowerswitch -S | FileCheck %s +; RUN: opt < %s -passes=lowerswitch -S | FileCheck %s ; CHECK-NOT: icmp eq i32 %0, 1 define i32 @foo(i32 %a) #0 { diff --git a/llvm/test/Transforms/LowerSwitch/2014-06-11-SwitchDefaultUnreachableOpt.ll b/llvm/test/Transforms/LowerSwitch/2014-06-11-SwitchDefaultUnreachableOpt.ll index 2652a6c..19e7f30 100644 --- a/llvm/test/Transforms/LowerSwitch/2014-06-11-SwitchDefaultUnreachableOpt.ll +++ b/llvm/test/Transforms/LowerSwitch/2014-06-11-SwitchDefaultUnreachableOpt.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -lowerswitch -S | FileCheck %s +; RUN: opt < %s -passes=lowerswitch -S | FileCheck %s ; ; The switch is lowered with a single icmp. ; CHECK: icmp diff --git a/llvm/test/Transforms/LowerSwitch/2014-06-23-PHIlowering.ll b/llvm/test/Transforms/LowerSwitch/2014-06-23-PHIlowering.ll index 27c1e52..0c58352 100644 --- a/llvm/test/Transforms/LowerSwitch/2014-06-23-PHIlowering.ll +++ b/llvm/test/Transforms/LowerSwitch/2014-06-23-PHIlowering.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -lowerswitch -S | FileCheck %s +; RUN: opt < %s -passes=lowerswitch -S | FileCheck %s define i32 @test(i32 %arg) #0 { ; CHECK-LABEL: @test diff --git a/llvm/test/Transforms/LowerSwitch/condition-phi-unreachable-default.ll b/llvm/test/Transforms/LowerSwitch/condition-phi-unreachable-default.ll index c53602b..18f864e 100644 --- a/llvm/test/Transforms/LowerSwitch/condition-phi-unreachable-default.ll +++ b/llvm/test/Transforms/LowerSwitch/condition-phi-unreachable-default.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -lowerswitch -S | FileCheck %s +; RUN: opt < %s -passes=lowerswitch -S | FileCheck %s ; This test verifies -lowerswitch does not crash when an removing an ; unreachable default branch causes a PHI node used as the switch diff --git a/llvm/test/Transforms/LowerSwitch/delete-default-block-crash.ll b/llvm/test/Transforms/LowerSwitch/delete-default-block-crash.ll index 23588d5..59b55aa 100644 --- a/llvm/test/Transforms/LowerSwitch/delete-default-block-crash.ll +++ b/llvm/test/Transforms/LowerSwitch/delete-default-block-crash.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -lowerswitch -disable-output +; RUN: opt < %s -passes=lowerswitch -disable-output ; This test verify -lowerswitch does not crash after deleting the default block. diff --git a/llvm/test/Transforms/LowerSwitch/do-not-handle-impossible-values.ll b/llvm/test/Transforms/LowerSwitch/do-not-handle-impossible-values.ll index 0deab42..771d46f 100644 --- a/llvm/test/Transforms/LowerSwitch/do-not-handle-impossible-values.ll +++ b/llvm/test/Transforms/LowerSwitch/do-not-handle-impossible-values.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -lowerswitch -S | FileCheck %s +; RUN: opt < %s -passes=lowerswitch -S | FileCheck %s ; Check that we do not generate redundant comparisons that would have results ; known at compile time due to limited range of the value being switch'ed over. diff --git a/llvm/test/Transforms/LowerSwitch/feature.ll b/llvm/test/Transforms/LowerSwitch/feature.ll index ffd1ed1..8e39c53 100644 --- a/llvm/test/Transforms/LowerSwitch/feature.ll +++ b/llvm/test/Transforms/LowerSwitch/feature.ll @@ -1,4 +1,3 @@ -; RUN: opt < %s -lowerswitch -S | FileCheck %s ; RUN: opt < %s -passes=lowerswitch -S | FileCheck %s ; We have switch on input. diff --git a/llvm/test/Transforms/LowerSwitch/fold-popular-case-to-unreachable-default.ll b/llvm/test/Transforms/LowerSwitch/fold-popular-case-to-unreachable-default.ll index 54929c5..62fad06 100644 --- a/llvm/test/Transforms/LowerSwitch/fold-popular-case-to-unreachable-default.ll +++ b/llvm/test/Transforms/LowerSwitch/fold-popular-case-to-unreachable-default.ll @@ -1,4 +1,4 @@ -; RUN: opt %s -lowerswitch -S | FileCheck %s +; RUN: opt %s -passes=lowerswitch -S | FileCheck %s define void @foo(i32 %x, i32* %p) { ; Cases 2 and 4 are removed and become the new default case. diff --git a/llvm/test/Transforms/LowerSwitch/phi-in-dead-block.ll b/llvm/test/Transforms/LowerSwitch/phi-in-dead-block.ll index a632584..ff94ff8 100644 --- a/llvm/test/Transforms/LowerSwitch/phi-in-dead-block.ll +++ b/llvm/test/Transforms/LowerSwitch/phi-in-dead-block.ll @@ -1,4 +1,4 @@ -; RUN: opt -S -lowerswitch %s | FileCheck %s +; RUN: opt -S -passes=lowerswitch %s | FileCheck %s ; CHECK-LABEL: @phi_in_dead_block( ; CHECK-NOT: switch diff --git a/llvm/test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll b/llvm/test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll index 840c28d..3548a40 100644 --- a/llvm/test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll +++ b/llvm/test/Transforms/MemCpyOpt/2008-03-13-ReturnSlotBitcast.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64" %a = type { i32 } diff --git a/llvm/test/Transforms/MemCpyOpt/2011-06-02-CallSlotOverwritten.ll b/llvm/test/Transforms/MemCpyOpt/2011-06-02-CallSlotOverwritten.ll index 84f145a..7cb3e7e 100644 --- a/llvm/test/Transforms/MemCpyOpt/2011-06-02-CallSlotOverwritten.ll +++ b/llvm/test/Transforms/MemCpyOpt/2011-06-02-CallSlotOverwritten.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s ; PR10067 ; Make sure the call+copy isn't optimized in such a way that ; %ret ends up with the wrong value. diff --git a/llvm/test/Transforms/MemCpyOpt/aa-recursion-assertion-failure.ll b/llvm/test/Transforms/MemCpyOpt/aa-recursion-assertion-failure.ll index ea5d4eb..80fa9b1 100644 --- a/llvm/test/Transforms/MemCpyOpt/aa-recursion-assertion-failure.ll +++ b/llvm/test/Transforms/MemCpyOpt/aa-recursion-assertion-failure.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -memcpyopt < %s | FileCheck %s +; RUN: opt -S -passes=memcpyopt < %s | FileCheck %s ; ModuleID = '' source_filename = "test.cpp" diff --git a/llvm/test/Transforms/MemCpyOpt/aggregate-type-crash.ll b/llvm/test/Transforms/MemCpyOpt/aggregate-type-crash.ll index 1f05eed..946e586 100644 --- a/llvm/test/Transforms/MemCpyOpt/aggregate-type-crash.ll +++ b/llvm/test/Transforms/MemCpyOpt/aggregate-type-crash.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -memcpyopt -S -o - < %s -verify-memoryssa | FileCheck %s +; RUN: opt -passes=memcpyopt -S -o - < %s -verify-memoryssa | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.14.0" diff --git a/llvm/test/Transforms/MemCpyOpt/align.ll b/llvm/test/Transforms/MemCpyOpt/align.ll index a07edc5..a8aa3b1 100644 --- a/llvm/test/Transforms/MemCpyOpt/align.ll +++ b/llvm/test/Transforms/MemCpyOpt/align.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -S -memcpyopt -verify-memoryssa | FileCheck %s +; RUN: opt < %s -S -passes=memcpyopt -verify-memoryssa | FileCheck %s target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64" declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture, i64, i1) nounwind diff --git a/llvm/test/Transforms/MemCpyOpt/atomic.ll b/llvm/test/Transforms/MemCpyOpt/atomic.ll index 5949d37..1fb9bdf8 100644 --- a/llvm/test/Transforms/MemCpyOpt/atomic.ll +++ b/llvm/test/Transforms/MemCpyOpt/atomic.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -memcpyopt -S < %s -verify-memoryssa | FileCheck %s +; RUN: opt -passes=memcpyopt -S < %s -verify-memoryssa | 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" target triple = "x86_64-apple-macosx10.7.0" diff --git a/llvm/test/Transforms/MemCpyOpt/byval-readnone.ll b/llvm/test/Transforms/MemCpyOpt/byval-readnone.ll index 414dd10..a08651c 100644 --- a/llvm/test/Transforms/MemCpyOpt/byval-readnone.ll +++ b/llvm/test/Transforms/MemCpyOpt/byval-readnone.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s %struct = type { i16 } diff --git a/llvm/test/Transforms/MemCpyOpt/callslot.ll b/llvm/test/Transforms/MemCpyOpt/callslot.ll index 63a5924..30df4c4 100644 --- a/llvm/test/Transforms/MemCpyOpt/callslot.ll +++ b/llvm/test/Transforms/MemCpyOpt/callslot.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -memcpyopt < %s -verify-memoryssa | FileCheck %s +; RUN: opt -S -passes=memcpyopt < %s -verify-memoryssa | FileCheck %s define i8 @read_dest_between_call_and_memcpy() { ; CHECK-LABEL: @read_dest_between_call_and_memcpy( diff --git a/llvm/test/Transforms/MemCpyOpt/callslot_aa.ll b/llvm/test/Transforms/MemCpyOpt/callslot_aa.ll index 46af5b1..410e16f 100644 --- a/llvm/test/Transforms/MemCpyOpt/callslot_aa.ll +++ b/llvm/test/Transforms/MemCpyOpt/callslot_aa.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -S -memcpyopt -verify-memoryssa | FileCheck %s +; RUN: opt < %s -S -passes=memcpyopt -verify-memoryssa | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" %T = type { i64, i64 } diff --git a/llvm/test/Transforms/MemCpyOpt/callslot_badaa.ll b/llvm/test/Transforms/MemCpyOpt/callslot_badaa.ll index 35c9f73..efdbdce 100644 --- a/llvm/test/Transforms/MemCpyOpt/callslot_badaa.ll +++ b/llvm/test/Transforms/MemCpyOpt/callslot_badaa.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -S -memcpyopt | FileCheck --match-full-lines %s +; RUN: opt < %s -S -passes=memcpyopt | FileCheck --match-full-lines %s ; Make sure callslot optimization merges alias.scope metadata correctly when it merges instructions. ; Merging here naively generates: diff --git a/llvm/test/Transforms/MemCpyOpt/callslot_deref.ll b/llvm/test/Transforms/MemCpyOpt/callslot_deref.ll index eef6d0a..e66f702 100644 --- a/llvm/test/Transforms/MemCpyOpt/callslot_deref.ll +++ b/llvm/test/Transforms/MemCpyOpt/callslot_deref.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -S -memcpyopt -verify-memoryssa | FileCheck %s +; RUN: opt < %s -S -passes=memcpyopt -verify-memoryssa | FileCheck %s target datalayout = "e-i64:64-f80:128-n8:16:32:64-S128" declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture readonly, i64, i1) unnamed_addr nounwind diff --git a/llvm/test/Transforms/MemCpyOpt/callslot_noalias.ll b/llvm/test/Transforms/MemCpyOpt/callslot_noalias.ll index 14fc312..483ce2f 100644 --- a/llvm/test/Transforms/MemCpyOpt/callslot_noalias.ll +++ b/llvm/test/Transforms/MemCpyOpt/callslot_noalias.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -memcpyopt < %s | FileCheck %s +; RUN: opt -S -passes=memcpyopt < %s | FileCheck %s declare void @func(ptr %dst) diff --git a/llvm/test/Transforms/MemCpyOpt/callslot_throw.ll b/llvm/test/Transforms/MemCpyOpt/callslot_throw.ll index 1e3ff4b..8ae188c 100644 --- a/llvm/test/Transforms/MemCpyOpt/callslot_throw.ll +++ b/llvm/test/Transforms/MemCpyOpt/callslot_throw.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -memcpyopt < %s -verify-memoryssa | FileCheck %s +; RUN: opt -S -passes=memcpyopt < %s -verify-memoryssa | FileCheck %s declare void @may_throw(ptr nocapture %x) define void @test1(ptr nocapture noalias dereferenceable(4) %x) { diff --git a/llvm/test/Transforms/MemCpyOpt/crash.ll b/llvm/test/Transforms/MemCpyOpt/crash.ll index 75e7edb..494140a 100644 --- a/llvm/test/Transforms/MemCpyOpt/crash.ll +++ b/llvm/test/Transforms/MemCpyOpt/crash.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -S -memcpyopt -verify-memoryssa | FileCheck %s +; RUN: opt < %s -S -passes=memcpyopt -verify-memoryssa | FileCheck %s target datalayout = "e-p:32:32:32-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" target triple = "armv7-eabi" diff --git a/llvm/test/Transforms/MemCpyOpt/fca2memcpy.ll b/llvm/test/Transforms/MemCpyOpt/fca2memcpy.ll index 33ce9c2..51fad82 100644 --- a/llvm/test/Transforms/MemCpyOpt/fca2memcpy.ll +++ b/llvm/test/Transforms/MemCpyOpt/fca2memcpy.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -memcpyopt -S < %s -verify-memoryssa | FileCheck %s +; RUN: opt -passes=memcpyopt -S < %s -verify-memoryssa | FileCheck %s target datalayout = "e-i64:64-f80:128-n8:16:32:64" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Transforms/MemCpyOpt/form-memset.ll b/llvm/test/Transforms/MemCpyOpt/form-memset.ll index 862dcec..020a721 100644 --- a/llvm/test/Transforms/MemCpyOpt/form-memset.ll +++ b/llvm/test/Transforms/MemCpyOpt/form-memset.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s ; All the stores in this example should be merged into a single memset. diff --git a/llvm/test/Transforms/MemCpyOpt/invariant.start.ll b/llvm/test/Transforms/MemCpyOpt/invariant.start.ll index e01253d..5d71b54 100644 --- a/llvm/test/Transforms/MemCpyOpt/invariant.start.ll +++ b/llvm/test/Transforms/MemCpyOpt/invariant.start.ll @@ -1,6 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py ; MemCpy optimizations should take place even in presence of invariant.start -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s 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" diff --git a/llvm/test/Transforms/MemCpyOpt/lifetime.ll b/llvm/test/Transforms/MemCpyOpt/lifetime.ll index 3f567c3..1a07e6c 100644 --- a/llvm/test/Transforms/MemCpyOpt/lifetime.ll +++ b/llvm/test/Transforms/MemCpyOpt/lifetime.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s ; performCallSlotOptzn in MemCpy should not exchange the calls to ; @llvm.lifetime.start and @llvm.memcpy. diff --git a/llvm/test/Transforms/MemCpyOpt/load-store-to-memcpy.ll b/llvm/test/Transforms/MemCpyOpt/load-store-to-memcpy.ll index a3a1f8a..a344cce 100644 --- a/llvm/test/Transforms/MemCpyOpt/load-store-to-memcpy.ll +++ b/llvm/test/Transforms/MemCpyOpt/load-store-to-memcpy.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -memcpyopt -S %s -verify-memoryssa | FileCheck %s +; RUN: opt -passes=memcpyopt -S %s -verify-memoryssa | FileCheck %s %T = type { i8, i32 } diff --git a/llvm/test/Transforms/MemCpyOpt/loadstore-sret.ll b/llvm/test/Transforms/MemCpyOpt/loadstore-sret.ll index 2f2daf5..461205e 100644 --- a/llvm/test/Transforms/MemCpyOpt/loadstore-sret.ll +++ b/llvm/test/Transforms/MemCpyOpt/loadstore-sret.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S < %s -memcpyopt -verify-memoryssa | FileCheck %s +; RUN: opt -S < %s -passes=memcpyopt -verify-memoryssa | 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/MemCpyOpt/memcpy-in-loop.ll b/llvm/test/Transforms/MemCpyOpt/memcpy-in-loop.ll index 405583d..6a48a07 100644 --- a/llvm/test/Transforms/MemCpyOpt/memcpy-in-loop.ll +++ b/llvm/test/Transforms/MemCpyOpt/memcpy-in-loop.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -memcpyopt < %s | FileCheck %s +; RUN: opt -S -passes=memcpyopt < %s | FileCheck %s define void @test_copy_uninit(ptr %arg) { ; CHECK-LABEL: @test_copy_uninit( diff --git a/llvm/test/Transforms/MemCpyOpt/memcpy-invoke-memcpy.ll b/llvm/test/Transforms/MemCpyOpt/memcpy-invoke-memcpy.ll index 0740de9..f1a7057 100644 --- a/llvm/test/Transforms/MemCpyOpt/memcpy-invoke-memcpy.ll +++ b/llvm/test/Transforms/MemCpyOpt/memcpy-invoke-memcpy.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s ; Test memcpy-memcpy dependencies across invoke edges. diff --git a/llvm/test/Transforms/MemCpyOpt/memcpy-to-memset.ll b/llvm/test/Transforms/MemCpyOpt/memcpy-to-memset.ll index 3313722..1858f30 100644 --- a/llvm/test/Transforms/MemCpyOpt/memcpy-to-memset.ll +++ b/llvm/test/Transforms/MemCpyOpt/memcpy-to-memset.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -memcpyopt -S < %s -verify-memoryssa | FileCheck %s +; RUN: opt -passes=memcpyopt -S < %s -verify-memoryssa | FileCheck %s declare void @llvm.memcpy.p0.p0.i64(ptr nocapture, ptr nocapture, i64, i1) nounwind diff --git a/llvm/test/Transforms/MemCpyOpt/memcpy-undef.ll b/llvm/test/Transforms/MemCpyOpt/memcpy-undef.ll index cc11f04..2f1ce37 100644 --- a/llvm/test/Transforms/MemCpyOpt/memcpy-undef.ll +++ b/llvm/test/Transforms/MemCpyOpt/memcpy-undef.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | 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-apple-macosx10.8.0" diff --git a/llvm/test/Transforms/MemCpyOpt/memmove.ll b/llvm/test/Transforms/MemCpyOpt/memmove.ll index 2cccf4c..69114ab 100644 --- a/llvm/test/Transforms/MemCpyOpt/memmove.ll +++ b/llvm/test/Transforms/MemCpyOpt/memmove.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s ; These memmoves should get optimized to memcpys. 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" diff --git a/llvm/test/Transforms/MemCpyOpt/memset-memcpy-oversized.ll b/llvm/test/Transforms/MemCpyOpt/memset-memcpy-oversized.ll index 6bc824a..1c38964 100644 --- a/llvm/test/Transforms/MemCpyOpt/memset-memcpy-oversized.ll +++ b/llvm/test/Transforms/MemCpyOpt/memset-memcpy-oversized.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -memcpyopt -S %s -verify-memoryssa | FileCheck %s +; RUN: opt -passes=memcpyopt -S %s -verify-memoryssa | FileCheck %s ; memset -> memcpy forwarding, if memcpy is larger than memset, but trailing ; bytes are known to be undef. diff --git a/llvm/test/Transforms/MemCpyOpt/memset-memcpy-redundant-memset.ll b/llvm/test/Transforms/MemCpyOpt/memset-memcpy-redundant-memset.ll index 77372f7..72a2340 100644 --- a/llvm/test/Transforms/MemCpyOpt/memset-memcpy-redundant-memset.ll +++ b/llvm/test/Transforms/MemCpyOpt/memset-memcpy-redundant-memset.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -memcpyopt -S %s -verify-memoryssa | FileCheck %s +; RUN: opt -passes=memcpyopt -S %s -verify-memoryssa | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/MemCpyOpt/memset-memcpy-to-2x-memset.ll b/llvm/test/Transforms/MemCpyOpt/memset-memcpy-to-2x-memset.ll index 6131d41..47474e8 100644 --- a/llvm/test/Transforms/MemCpyOpt/memset-memcpy-to-2x-memset.ll +++ b/llvm/test/Transforms/MemCpyOpt/memset-memcpy-to-2x-memset.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -memcpyopt -S %s -verify-memoryssa | FileCheck %s +; RUN: opt -passes=memcpyopt -S %s -verify-memoryssa | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/MemCpyOpt/merge-into-memset.ll b/llvm/test/Transforms/MemCpyOpt/merge-into-memset.ll index 0b40d2d..78aa769 100644 --- a/llvm/test/Transforms/MemCpyOpt/merge-into-memset.ll +++ b/llvm/test/Transforms/MemCpyOpt/merge-into-memset.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/MemCpyOpt/mixed-sizes.ll b/llvm/test/Transforms/MemCpyOpt/mixed-sizes.ll index a5f6b8a..5e13432 100644 --- a/llvm/test/Transforms/MemCpyOpt/mixed-sizes.ll +++ b/llvm/test/Transforms/MemCpyOpt/mixed-sizes.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s ; Handle memcpy-memcpy dependencies of differing sizes correctly. target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/MemCpyOpt/no-libcalls.ll b/llvm/test/Transforms/MemCpyOpt/no-libcalls.ll index 1a4862f..1e4b526 100644 --- a/llvm/test/Transforms/MemCpyOpt/no-libcalls.ll +++ b/llvm/test/Transforms/MemCpyOpt/no-libcalls.ll @@ -1,7 +1,7 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -memcpyopt -opaque-pointers < %s | FileCheck %s --check-prefixes=CHECK,LIBCALLS -; RUN: opt -S -memcpyopt -mtriple=amdgcn-- -opaque-pointers < %s | FileCheck %s --check-prefixes=CHECK,NO-LIBCALLS -; RUN: opt -S -memcpyopt -mtriple=amdgcn-- -enable-memcpyopt-without-libcalls -opaque-pointers < %s \ +; RUN: opt -S -passes=memcpyopt -opaque-pointers < %s | FileCheck %s --check-prefixes=CHECK,LIBCALLS +; RUN: opt -S -passes=memcpyopt -mtriple=amdgcn-- -opaque-pointers < %s | FileCheck %s --check-prefixes=CHECK,NO-LIBCALLS +; RUN: opt -S -passes=memcpyopt -mtriple=amdgcn-- -enable-memcpyopt-without-libcalls -opaque-pointers < %s \ ; RUN: | FileCheck %s --check-prefixes=CHECK,LIBCALLS ; REQUIRES: amdgpu-registered-target diff --git a/llvm/test/Transforms/MemCpyOpt/non-integral.ll b/llvm/test/Transforms/MemCpyOpt/non-integral.ll index f8eb1cb..0e609e4 100644 --- a/llvm/test/Transforms/MemCpyOpt/non-integral.ll +++ b/llvm/test/Transforms/MemCpyOpt/non-integral.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -memcpyopt -S < %s -verify-memoryssa | FileCheck %s +; RUN: opt -passes=memcpyopt -S < %s -verify-memoryssa | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128-ni:1" diff --git a/llvm/test/Transforms/MemCpyOpt/nonlocal-memcpy-memcpy.ll b/llvm/test/Transforms/MemCpyOpt/nonlocal-memcpy-memcpy.ll index 718f511..6f8b723 100644 --- a/llvm/test/Transforms/MemCpyOpt/nonlocal-memcpy-memcpy.ll +++ b/llvm/test/Transforms/MemCpyOpt/nonlocal-memcpy-memcpy.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s ; Test whether memcpy-memcpy dependence is optimized across ; basic blocks (conditional branches and invokes). diff --git a/llvm/test/Transforms/MemCpyOpt/nontemporal.ll b/llvm/test/Transforms/MemCpyOpt/nontemporal.ll index 7bb7227..326f268 100644 --- a/llvm/test/Transforms/MemCpyOpt/nontemporal.ll +++ b/llvm/test/Transforms/MemCpyOpt/nontemporal.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Transforms/MemCpyOpt/opaque-ptr.ll b/llvm/test/Transforms/MemCpyOpt/opaque-ptr.ll index fbf1859..3050d81 100644 --- a/llvm/test/Transforms/MemCpyOpt/opaque-ptr.ll +++ b/llvm/test/Transforms/MemCpyOpt/opaque-ptr.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -memcpyopt -S %s -verify-memoryssa -opaque-pointers | FileCheck %s +; RUN: opt -passes=memcpyopt -S %s -verify-memoryssa -opaque-pointers | FileCheck %s define void @test_memset_memcpy(ptr %src, i64 %src_size, ptr noalias %dst, i64 %dst_size, i8 %c) { ; CHECK-LABEL: @test_memset_memcpy( diff --git a/llvm/test/Transforms/MemCpyOpt/pr37967.ll b/llvm/test/Transforms/MemCpyOpt/pr37967.ll index ad3c9a8..31b0b0c 100644 --- a/llvm/test/Transforms/MemCpyOpt/pr37967.ll +++ b/llvm/test/Transforms/MemCpyOpt/pr37967.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -debugify -memcpyopt -check-debugify -S < %s 2>&1 -verify-memoryssa | FileCheck %s +; RUN: opt -passes='debugify,memcpyopt,check-debugify' -S < %s 2>&1 -verify-memoryssa | FileCheck %s ; CHECK: CheckModuleDebugify: PASS diff --git a/llvm/test/Transforms/MemCpyOpt/pr54682.ll b/llvm/test/Transforms/MemCpyOpt/pr54682.ll index e60a75f..58fa4d5 100644 --- a/llvm/test/Transforms/MemCpyOpt/pr54682.ll +++ b/llvm/test/Transforms/MemCpyOpt/pr54682.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -memcpyopt < %s | FileCheck %s +; RUN: opt -S -passes=memcpyopt < %s | FileCheck %s ; The memcpy here is *not* dead, because it reads memory written in a previous ; loop iteration. diff --git a/llvm/test/Transforms/MemCpyOpt/process_store.ll b/llvm/test/Transforms/MemCpyOpt/process_store.ll index 2c79342..26895cd 100644 --- a/llvm/test/Transforms/MemCpyOpt/process_store.ll +++ b/llvm/test/Transforms/MemCpyOpt/process_store.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -S -memcpyopt -verify-memoryssa | FileCheck %s +; RUN: opt < %s -S -passes=memcpyopt -verify-memoryssa | 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/MemCpyOpt/profitable-memset.ll b/llvm/test/Transforms/MemCpyOpt/profitable-memset.ll index 8bf58ce..d48b75d 100644 --- a/llvm/test/Transforms/MemCpyOpt/profitable-memset.ll +++ b/llvm/test/Transforms/MemCpyOpt/profitable-memset.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128" diff --git a/llvm/test/Transforms/MemCpyOpt/smaller.ll b/llvm/test/Transforms/MemCpyOpt/smaller.ll index d39ccf2..89a5123 100644 --- a/llvm/test/Transforms/MemCpyOpt/smaller.ll +++ b/llvm/test/Transforms/MemCpyOpt/smaller.ll @@ -1,5 +1,4 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -memcpyopt -S < %s -verify-memoryssa | FileCheck %s ; RUN: opt -passes=memcpyopt -S < %s -verify-memoryssa | FileCheck %s ; rdar://8875553 diff --git a/llvm/test/Transforms/MemCpyOpt/sret.ll b/llvm/test/Transforms/MemCpyOpt/sret.ll index 3819110..efb5912 100644 --- a/llvm/test/Transforms/MemCpyOpt/sret.ll +++ b/llvm/test/Transforms/MemCpyOpt/sret.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s 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 = "i686-apple-darwin9" diff --git a/llvm/test/Transforms/MemCpyOpt/stackrestore.ll b/llvm/test/Transforms/MemCpyOpt/stackrestore.ll index 0407b4e..5a585ee 100644 --- a/llvm/test/Transforms/MemCpyOpt/stackrestore.ll +++ b/llvm/test/Transforms/MemCpyOpt/stackrestore.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S -memcpyopt < %s -verify-memoryssa | FileCheck %s +; RUN: opt -S -passes=memcpyopt < %s -verify-memoryssa | FileCheck %s ; PR40118: BasicAA didn't realize that stackrestore ends the lifetime of ; unescaped dynamic allocas, such as those that might come from inalloca. diff --git a/llvm/test/Transforms/MemCpyOpt/store-to-memset-is-nonzero-type.ll b/llvm/test/Transforms/MemCpyOpt/store-to-memset-is-nonzero-type.ll index 7cad877..0455d65 100644 --- a/llvm/test/Transforms/MemCpyOpt/store-to-memset-is-nonzero-type.ll +++ b/llvm/test/Transforms/MemCpyOpt/store-to-memset-is-nonzero-type.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt -S < %s -memcpyopt -verify-memoryssa | FileCheck %s +; RUN: opt -S < %s -passes=memcpyopt -verify-memoryssa | FileCheck %s ; Array diff --git a/llvm/test/Transforms/MemCpyOpt/store-to-memset.ll b/llvm/test/Transforms/MemCpyOpt/store-to-memset.ll index 44de707..c28e3c1 100644 --- a/llvm/test/Transforms/MemCpyOpt/store-to-memset.ll +++ b/llvm/test/Transforms/MemCpyOpt/store-to-memset.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-grtev4-linux-gnu" diff --git a/llvm/test/Transforms/MemCpyOpt/variable-sized-memcpy-memcpy.ll b/llvm/test/Transforms/MemCpyOpt/variable-sized-memcpy-memcpy.ll index 862f0ac..4f6b734 100644 --- a/llvm/test/Transforms/MemCpyOpt/variable-sized-memcpy-memcpy.ll +++ b/llvm/test/Transforms/MemCpyOpt/variable-sized-memcpy-memcpy.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" define void @test(ptr %src, i64 %size) { diff --git a/llvm/test/Transforms/MemCpyOpt/variable-sized-memcpy-uninit.ll b/llvm/test/Transforms/MemCpyOpt/variable-sized-memcpy-uninit.ll index 37aff7b..7dffd63 100644 --- a/llvm/test/Transforms/MemCpyOpt/variable-sized-memcpy-uninit.ll +++ b/llvm/test/Transforms/MemCpyOpt/variable-sized-memcpy-uninit.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" define void @test(i64 %size) { diff --git a/llvm/test/Transforms/MemCpyOpt/variable-sized-memset-memcpy.ll b/llvm/test/Transforms/MemCpyOpt/variable-sized-memset-memcpy.ll index 48d8e26..a834d24 100644 --- a/llvm/test/Transforms/MemCpyOpt/variable-sized-memset-memcpy.ll +++ b/llvm/test/Transforms/MemCpyOpt/variable-sized-memset-memcpy.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" define void @test(ptr %src, i8 %c, i64 %size) { diff --git a/llvm/test/Transforms/MemCpyOpt/vscale-crashes.ll b/llvm/test/Transforms/MemCpyOpt/vscale-crashes.ll index d2347f9..84b06f6 100644 --- a/llvm/test/Transforms/MemCpyOpt/vscale-crashes.ll +++ b/llvm/test/Transforms/MemCpyOpt/vscale-crashes.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S -verify-memoryssa | FileCheck %s ; Check that a call featuring a scalable-vector byval argument fed by a memcpy ; doesn't crash the compiler. It previously assumed the byval type's size could diff --git a/llvm/test/Transforms/MemCpyOpt/vscale-memset.ll b/llvm/test/Transforms/MemCpyOpt/vscale-memset.ll index 7bed1a6..b4ab443 100644 --- a/llvm/test/Transforms/MemCpyOpt/vscale-memset.ll +++ b/llvm/test/Transforms/MemCpyOpt/vscale-memset.ll @@ -1,5 +1,5 @@ ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py -; RUN: opt < %s -memcpyopt -dce -S -verify-memoryssa | FileCheck %s +; RUN: opt < %s -passes=memcpyopt,dce -S -verify-memoryssa | FileCheck %s ; Negative test ; Check this test is not transformed into memset, or cause a compiler warning diff --git a/llvm/test/Transforms/SampleProfile/pseudo-probe-memset.ll b/llvm/test/Transforms/SampleProfile/pseudo-probe-memset.ll index ca21f68..bf33f22 100644 --- a/llvm/test/Transforms/SampleProfile/pseudo-probe-memset.ll +++ b/llvm/test/Transforms/SampleProfile/pseudo-probe-memset.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -memcpyopt -S | FileCheck %s +; RUN: opt < %s -passes=memcpyopt -S | FileCheck %s %struct.MV = type { i16, i16 } diff --git a/llvm/test/Transforms/SpeculativeExecution/spec-fp.ll b/llvm/test/Transforms/SpeculativeExecution/spec-fp.ll index 181ce37..d302fe8 100644 --- a/llvm/test/Transforms/SpeculativeExecution/spec-fp.ll +++ b/llvm/test/Transforms/SpeculativeExecution/spec-fp.ll @@ -1,4 +1,4 @@ -; RUN: opt < %s -S -speculative-execution \ +; RUN: opt < %s -S -passes=speculative-execution \ ; RUN: -spec-exec-max-speculation-cost 4 -spec-exec-max-not-hoisted 3 \ ; RUN: | FileCheck %s diff --git a/llvm/test/Transforms/Util/Debugify/loc-only.ll b/llvm/test/Transforms/Util/Debugify/loc-only.ll index 250e72d..e001355 100644 --- a/llvm/test/Transforms/Util/Debugify/loc-only.ll +++ b/llvm/test/Transforms/Util/Debugify/loc-only.ll @@ -1,5 +1,5 @@ -; RUN: opt -debugify -S < %s | FileCheck --check-prefixes=ALL,VALUE %s -; RUN: opt -debugify -debugify-level=locations -S < %s | FileCheck --check-prefixes=ALL --implicit-check-not=dbg.value %s +; RUN: opt -passes=debugify -S < %s | FileCheck --check-prefixes=ALL,VALUE %s +; RUN: opt -passes=debugify -debugify-level=locations -S < %s | FileCheck --check-prefixes=ALL --implicit-check-not=dbg.value %s ; ALL-LABEL: @test define void @test() { diff --git a/llvm/test/Transforms/Util/lowerinvoke-funclet.ll b/llvm/test/Transforms/Util/lowerinvoke-funclet.ll index dfa3e98..0d0f830 100644 --- a/llvm/test/Transforms/Util/lowerinvoke-funclet.ll +++ b/llvm/test/Transforms/Util/lowerinvoke-funclet.ll @@ -1,4 +1,4 @@ -; RUN: opt -lowerinvoke -S < %s | FileCheck %s +; RUN: opt -passes=lowerinvoke -S < %s | FileCheck %s ; Test if invoke instructions that have a funclet operand bundle can be lowered. diff --git a/llvm/test/Transforms/Util/lowerswitch.ll b/llvm/test/Transforms/Util/lowerswitch.ll index f0bdbeb..c1e35aa 100644 --- a/llvm/test/Transforms/Util/lowerswitch.ll +++ b/llvm/test/Transforms/Util/lowerswitch.ll @@ -1,4 +1,4 @@ -; RUN: opt -lowerswitch -S < %s | FileCheck %s +; RUN: opt -passes=lowerswitch -S < %s | FileCheck %s ; Test that we don't crash and have a different basic block for each incoming edge. define void @test0(i32 %mode) { -- 2.7.4