[test] Use -passes in more Transforms tests
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Thu, 20 Oct 2022 22:04:16 +0000 (00:04 +0200)
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>
Fri, 21 Oct 2022 15:02:02 +0000 (17:02 +0200)
Another step towards getting rid of dependencies to the legacy
pass manager.

Primary change here is to just do -passes=foo instead of -foo in
simple situations (when running a single transform pass). But also
updated a few test running multiple passes.

Also removed some "duplicated" RUN lines in a few tests that where
using both -foo and -passes=foo syntax. No need to do the same kind
of testing twice.

105 files changed:
llvm/test/Transforms/DeadStoreElimination/debuginfo.ll
llvm/test/Transforms/DeadStoreElimination/libcalls.ll
llvm/test/Transforms/DeadStoreElimination/memcpy-complete-overwrite.ll
llvm/test/Transforms/DeadStoreElimination/memset-and-memcpy.ll
llvm/test/Transforms/DeadStoreElimination/noop-stores.ll
llvm/test/Transforms/InstCombine/PR30597.ll
llvm/test/Transforms/InstCombine/PR37526.ll
llvm/test/Transforms/InstCombine/alloca-cast-debuginfo.ll
llvm/test/Transforms/InstCombine/assume-inseltpoison.ll
llvm/test/Transforms/InstCombine/assume.ll
llvm/test/Transforms/InstCombine/branch.ll
llvm/test/Transforms/InstCombine/builtin-object-size-strdup-family.ll
llvm/test/Transforms/InstCombine/call-guard.ll
llvm/test/Transforms/InstCombine/cast-mul-select.ll
llvm/test/Transforms/InstCombine/debuginfo-skip.ll
llvm/test/Transforms/InstCombine/debuginfo-variables.ll
llvm/test/Transforms/InstCombine/debuginfo.ll
llvm/test/Transforms/InstCombine/debuginfo_add.ll
llvm/test/Transforms/InstCombine/do-not-clone-dbg-declare.ll
llvm/test/Transforms/LoopReroll/basic.ll
llvm/test/Transforms/LoopReroll/basic32iters.ll
llvm/test/Transforms/LoopReroll/complex_reroll.ll
llvm/test/Transforms/LoopReroll/external_use.ll
llvm/test/Transforms/LoopReroll/extra_instr.ll
llvm/test/Transforms/LoopReroll/indvar_with_ext.ll
llvm/test/Transforms/LoopReroll/negative.ll
llvm/test/Transforms/LoopReroll/nonconst_lb.ll
llvm/test/Transforms/LoopReroll/ptrindvar.ll
llvm/test/Transforms/LoopReroll/reduction.ll
llvm/test/Transforms/LoopReroll/reroll_with_dbg.ll
llvm/test/Transforms/Mem2Reg/opaque-ptr.ll
llvm/test/Transforms/MemCpyOpt/2008-02-24-MultipleUseofSRet.ll
llvm/test/Transforms/MemCpyOpt/memcpy-to-memset-with-lifetimes.ll
llvm/test/Transforms/MemCpyOpt/memcpy.ll
llvm/test/Transforms/MemCpyOpt/pr29105.ll
llvm/test/Transforms/Reassociate/2002-05-15-AgressiveSubMove.ll
llvm/test/Transforms/Reassociate/2006-04-27-ReassociateVector.ll
llvm/test/Transforms/Reassociate/2012-05-08-UndefLeak.ll
llvm/test/Transforms/Reassociate/2019-08-22-FNegAssert.ll
llvm/test/Transforms/Reassociate/absorption.ll
llvm/test/Transforms/Reassociate/add-like-or.ll
llvm/test/Transforms/Reassociate/add_across_block_crash.ll
llvm/test/Transforms/Reassociate/binop-identity.ll
llvm/test/Transforms/Reassociate/callbr.ll
llvm/test/Transforms/Reassociate/commute.ll
llvm/test/Transforms/Reassociate/factorize-again.ll
llvm/test/Transforms/Reassociate/fast-AgressiveSubMove.ll
llvm/test/Transforms/Reassociate/fast-ReassociateVector.ll
llvm/test/Transforms/Reassociate/fast-basictest.ll
llvm/test/Transforms/Reassociate/fast-fp-commute.ll
llvm/test/Transforms/Reassociate/fast-multistep.ll
llvm/test/Transforms/Reassociate/fp-commute.ll
llvm/test/Transforms/Reassociate/fp-expr.ll
llvm/test/Transforms/Reassociate/keep-debug-loc.ll
llvm/test/Transforms/Reassociate/load-combine-like-or.ll
llvm/test/Transforms/Reassociate/looptest.ll
llvm/test/Transforms/Reassociate/matching-binops.ll
llvm/test/Transforms/Reassociate/mulfactor.ll
llvm/test/Transforms/Reassociate/multistep.ll
llvm/test/Transforms/Reassociate/negation.ll
llvm/test/Transforms/Reassociate/no-op.ll
llvm/test/Transforms/Reassociate/optional-flags.ll
llvm/test/Transforms/Reassociate/pr21205.ll
llvm/test/Transforms/Reassociate/pr28367.ll
llvm/test/Transforms/Reassociate/pr42349.ll
llvm/test/Transforms/Reassociate/propagate-flags.ll
llvm/test/Transforms/Reassociate/reassoc-intermediate-fnegs.ll
llvm/test/Transforms/Reassociate/reassociate_dbgvalue_discard.ll
llvm/test/Transforms/Reassociate/reassociate_salvages_debug_info.ll
llvm/test/Transforms/Reassociate/repeats.ll
llvm/test/Transforms/Reassociate/secondary.ll
llvm/test/Transforms/Reassociate/undef_intrinsics_when_deleting_instructions.ll
llvm/test/Transforms/Reassociate/xor_reassoc.ll
llvm/test/Transforms/Sink/badloadsink.ll
llvm/test/Transforms/Sink/basic.ll
llvm/test/Transforms/Sink/call.ll
llvm/test/Transforms/Sink/catchswitch.ll
llvm/test/Transforms/Sink/convergent.ll
llvm/test/Transforms/Sink/dead-user.ll
llvm/test/Transforms/Sink/fence.ll
llvm/test/Transforms/Sink/invariant-load.ll
llvm/test/Transforms/Sink/landingpad.ll
llvm/test/Transforms/Util/Debugify/loc-only-original-mode.ll
llvm/test/Transforms/Util/add-TLI-mappings.ll
llvm/test/Transforms/Util/annotation-remarks-dbg-info.ll
llvm/test/Transforms/Util/annotation-remarks.ll
llvm/test/Transforms/Util/annotation2metadata.ll
llvm/test/Transforms/Util/combine-alias-scope-metadata.ll
llvm/test/Transforms/Util/dbg-call-bitcast.ll
llvm/test/Transforms/Util/dbg-user-of-aext.ll
llvm/test/Transforms/Util/libcalls-fast-math-inf-loop.ll
llvm/test/Transforms/Util/libcalls-shrinkwrap-double.ll
llvm/test/Transforms/Util/libcalls-shrinkwrap-float.ll
llvm/test/Transforms/Util/libcalls-shrinkwrap-long-double.ll
llvm/test/Transforms/Util/salvage-debuginfo.ll
llvm/test/Transforms/Util/simplify-dbg-declare-load.ll
llvm/test/Transforms/Util/store-first-op.ll
llvm/test/Transforms/Util/strip-gc-relocates.ll
llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-containingtypes.ll
llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-cus.ll
llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-heapallocsite.ll
llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-labels.ll
llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-localvars.ll
llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-loops.ll
llvm/test/Transforms/Util/strip-nonlinetable-debuginfo-subroutinetypes.ll

index 678df9d..44f7b11 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -debugify -dse -S | FileCheck %s
+; RUN: opt < %s -passes=debugify,dse -S | FileCheck %s
 
 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
 
index 3198f3c..f437112 100644 (file)
@@ -1,5 +1,4 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -inferattrs -dse | FileCheck %s
 ; RUN: opt < %s -S -aa-pipeline=basic-aa -passes=inferattrs,dse | FileCheck %s
 
 target triple = "x86_64-unknown-linux-gnu"
index b799476..d2ae8b2 100644 (file)
@@ -1,7 +1,7 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
 
+; FIXME: These were broken when swapping to MSSA(?). So currently XFAIL:ed.
 ; XFAIL: *
-; RUN: opt < %s -dse -S | FileCheck %s
 ; RUN: opt < %s -aa-pipeline=basic-aa -passes=dse -S | FileCheck %s
 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
 
index be929a8..39550c6 100644 (file)
@@ -1,5 +1,4 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -dse -S | FileCheck %s
 ; RUN: opt < %s -aa-pipeline=basic-aa -passes=dse -S | FileCheck %s
 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
 
index 9284a99..8790bf6 100644 (file)
@@ -1,5 +1,4 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -dse -S | FileCheck %s
 ; RUN: opt < %s -aa-pipeline=basic-aa -passes='dse,verify<memoryssa>' -S | FileCheck %s
 target datalayout = "E-p:64:64:64-a0:0:8-f32:32:32-f64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-v64:64:64-v128:128:128"
 
index 1e463e3..75d06b6 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -instcombine -S | FileCheck %s
+; RUN: opt < %s -passes=instcombine -S | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
index e2ef026..1ad9d5d 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -instcombine -S < %s | FileCheck %s
+; RUN: opt -passes=instcombine -S < %s | FileCheck %s
 
 define void @PR37526(ptr %pz, ptr %px, ptr %py) {
 ; CHECK-LABEL: @PR37526(
index 46419d3..7f0e905 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -S -instcombine -instcombine-lower-dbg-declare=0 | FileCheck %s
+; RUN: opt < %s -S -passes=instcombine -instcombine-lower-dbg-declare=0 | FileCheck %s
 
 ; In this example, instcombine wants to turn "local" into an i64, since that's
 ; how it is stored. It should keep the debug info referring to the alloca when
index f497555..df18c66 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -instcombine -S -instcombine-infinite-loop-threshold=2 | FileCheck %s
+; RUN: opt < %s -passes=instcombine -S -instcombine-infinite-loop-threshold=2 | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
index d6490db..388bc49 100644 (file)
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -instcombine -S  -instcombine-infinite-loop-threshold=2  | FileCheck --check-prefixes=CHECK,DEFAULT %s
-; RUN: opt < %s -instcombine --enable-knowledge-retention -S  -instcombine-infinite-loop-threshold=2  | FileCheck --check-prefixes=CHECK,BUNDLES %s
+; RUN: opt < %s -passes=instcombine -S  -instcombine-infinite-loop-threshold=2  | FileCheck --check-prefixes=CHECK,DEFAULT %s
+; RUN: opt < %s -passes=instcombine --enable-knowledge-retention -S  -instcombine-infinite-loop-threshold=2  | FileCheck --check-prefixes=CHECK,BUNDLES %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
index 70a8182..7857aa2 100644 (file)
@@ -1,5 +1,4 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -instcombine -S < %s | FileCheck %s
 ; RUN: opt -passes=instcombine -S < %s | FileCheck %s
 
 ; Check that we fold the condition of branches of the
index f8bbe74..63f3edc 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -instcombine -S < %s | FileCheck %s
+; RUN: opt -passes=instcombine -S < %s | FileCheck %s
 
 
 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
index 5ed9a37..dbe8cf2 100644 (file)
@@ -1,6 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -instcombine -instcombine-infinite-loop-threshold=2 -S | FileCheck %s
-; RUN: opt < %s -instcombine -S -debugify-each | FileCheck %s
+; RUN: opt < %s -passes=instcombine -instcombine-infinite-loop-threshold=2 -S | FileCheck %s
 ; RUN: opt < %s -passes=instcombine -S -debugify-each | FileCheck %s
 
 declare void @llvm.experimental.guard(i1, ...)
index 865bbef..8c06e55 100644 (file)
@@ -1,6 +1,6 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -instcombine -S | FileCheck %s
-; RUN: opt -debugify -instcombine -S < %s | FileCheck %s -check-prefix DBGINFO
+; RUN: opt < %s -passes=instcombine -S | FileCheck %s
+; RUN: opt -passes=debugify,instcombine -S < %s | FileCheck %s -check-prefix DBGINFO
 
 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"
 
index d142cf1..dd1146e 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt -instcombine-lower-dbg-declare=0 < %s -instcombine -S | FileCheck %s
-; RUN: opt -instcombine-lower-dbg-declare=1 < %s -instcombine -S | FileCheck %s
+; RUN: opt -instcombine-lower-dbg-declare=0 < %s -passes=instcombine -S | FileCheck %s
+; RUN: opt -instcombine-lower-dbg-declare=1 < %s -passes=instcombine -S | FileCheck %s
 
 define i32 @foo(i32 %j) #0 !dbg !7 {
 entry:
index 404344c..2c62694 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -debugify -instcombine -S | FileCheck %s
+; RUN: opt < %s -passes=debugify,instcombine -S | FileCheck %s
 
 declare void @escape32(i32)
 
index b97c500..81fd67d 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: opt < %s -instcombine -instcombine-lower-dbg-declare=0 -S \
+; RUN: opt < %s -passes=instcombine -instcombine-lower-dbg-declare=0 -S \
 ; RUN:      | FileCheck %s --check-prefix=CHECK --check-prefix=NOLOWER
-; RUN: opt < %s -instcombine -instcombine-lower-dbg-declare=1 -S | FileCheck %s
+; RUN: opt < %s -passes=instcombine -instcombine-lower-dbg-declare=1 -S | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64--linux"
index 83c4288..47ba3b3 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -instcombine %s -o - -S | FileCheck %s
+; RUN: opt -passes=instcombine %s -o - -S | FileCheck %s
 ; typedef struct v *v_t;
 ; struct v {
 ;   unsigned long long p;
index bef6838..ce177d9 100644 (file)
@@ -1,5 +1,5 @@
 
-; RUN: opt < %s -instcombine -verify -S -o - | FileCheck %s
+; RUN: opt < %s -passes=instcombine,verify -S -o - | FileCheck %s
 
 ; Hand-reduced from this example.
 ; -g -O -mllvm -disable-llvm-optzns -gno-column-info
index c49dc9e..80e5d9b 100644 (file)
@@ -1,4 +1,3 @@
-; RUN: opt < %s -loop-reroll -S | FileCheck %s
 ; RUN: opt < %s -passes=loop-reroll -S | FileCheck %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
index 758fd8a..c0827de 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-reroll -verify-scev -S | FileCheck %s
+; RUN: opt < %s -passes=loop-reroll -verify-scev -S | FileCheck %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 
index 60c04c9..090fb2a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S  -loop-reroll   %s | FileCheck %s
+; RUN: opt -S  -passes=loop-reroll   %s | FileCheck %s
 declare i32 @goo(i32, i32)
 
 @buf = external global i8*
index 8f57c03..2124f3b 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-reroll -S | FileCheck %s
+; RUN: opt < %s -passes=loop-reroll -S | FileCheck %s
 
 ; Check whether rerolling is rejected if values of the base and root
 ; instruction are used outside the loop block.
index aae2907..cf262fd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S  -loop-reroll   %s | FileCheck %s
+; RUN: opt -S  -passes=loop-reroll   %s | FileCheck %s
 target triple = "aarch64--linux-gnu"
 
 define void @rerollable1([2 x i32]* nocapture %a) {
index 59d5ea5..25a13a6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S  -loop-reroll   %s | FileCheck %s
+; RUN: opt -S  -passes=loop-reroll   %s | FileCheck %s
 target triple = "aarch64--linux-gnu"
 
 define void @test(i32 %n, float* %arrayidx200, float* %arrayidx164, float* %arrayidx172) {
index 36f6806..cc508d2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S  -loop-reroll   %s | FileCheck %s
+; RUN: opt -S  -passes=loop-reroll   %s | FileCheck %s
 target triple = "aarch64--linux-gnu"
 @buf = global [16 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A", align 1
 
index 31cc10e..426cf2e 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -loop-reroll -S | FileCheck %s
+; RUN: opt < %s -passes=loop-reroll -S | FileCheck %s
 target datalayout = "e-p:32:32:32-i1:8:32-i8:8:32-i16:16:32-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:32:64-v128:32:128-a0:0:32-n32-S32"
 target triple = "thumbv7-none-linux"
 
index 8c876b4..28006bd 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S  -loop-reroll   %s | FileCheck %s
+; RUN: opt -S  -passes=loop-reroll   %s | FileCheck %s
 target triple = "aarch64--linux-gnu"
 
 define i32 @test(i32* readonly %buf, i32* readnone %end) #0 {
index b1e9247..bc7d81f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -loop-reroll -S | FileCheck %s
+; RUN: opt < %s -passes=loop-reroll -S | FileCheck %s
 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 
index a57ccd4..2102cc9 100644 (file)
@@ -1,4 +1,4 @@
-;RUN: opt < %s -loop-reroll -S | FileCheck %s
+;RUN: opt < %s -passes=loop-reroll -S | FileCheck %s
 ;void foo(float * restrict a, float * restrict b, int n) {
 ;  for(int i = 0; i < n; i+=4) {
 ;    a[i] = b[i];
index 0eec7b6..6d8d18b 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -mem2reg -opaque-pointers < %s | FileCheck %s
+; RUN: opt -S -passes=mem2reg -opaque-pointers < %s | FileCheck %s
 
 define i32 @test_same_type() {
 ; CHECK-LABEL: @test_same_type(
index c52fe27..66e109a 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -memcpyopt -dse -S -verify-memoryssa | FileCheck %s
+; RUN: opt < %s -passes=memcpyopt,dse -S -verify-memoryssa | FileCheck %s
 ; PR2077
 
 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:32:32"
index a152071..1771fe6 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -memcpyopt -instcombine -S < %s -verify-memoryssa | FileCheck %s
+; RUN: opt -passes=memcpyopt,instcombine -S < %s -verify-memoryssa | FileCheck %s
 
 target datalayout = "e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
index ca06f16..553bb78 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -memcpyopt -dse -S -verify-memoryssa | FileCheck %s
+; RUN: opt < %s -passes=memcpyopt,dse -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"
index dd9f3c3..86fc93f 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -memcpyopt -instcombine -S %s -verify-memoryssa | FileCheck %s
+; RUN: opt -passes=memcpyopt,instcombine -S %s -verify-memoryssa | FileCheck %s
 %Foo = type { [2048 x i64] }
 
 ; Make sure that all mempcy calls are converted to memset calls, or removed.
index 2430035..d8a73fb 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 define i32 @test1(i32 %A) {
 ; CHECK-LABEL: test1
index ea86984..7c746fe 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 define <4 x float> @test1() {
 ; CHECK-LABEL: test1
index c563fe2..2019a5d 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 ; PR12169
 ; PR12764
 ; XFAIL: *
index 345d4e3..71a9e57 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 ; D61675
 
 define float @test1(float %arg, float %arg1, float %arg2, float %arg3) {
index 744107c..c014ab6 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -reassociate < %s | FileCheck %s
+; RUN: opt -S -passes=reassociate < %s | FileCheck %s
 
 ; Check that if constants combine to an absorbing value then the expression is
 ; evaluated as the absorbing value.
index 2558a02..514b10b 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 define i32 @shl_add(i8 %x) {
 ; CHECK-LABEL: @shl_add(
index 8a753a2..26e9712 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; This test is to make sure while processing a block, uses of instructions
 ; from a different basic block don't get added to be re-optimized
index 13333fa..ad697b5 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; Don't produce an instruction that is a no-op because the constant is an identity constant.
 
index 26cb7d5..8b7be30 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -reassociate < %s | FileCheck %s
+; RUN: opt -S -passes=reassociate < %s | FileCheck %s
 
 define i32 @test(i1 %b) {
 ; CHECK-LABEL: @test(
index 6009159..5ebc11e 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -reassociate -S < %s | FileCheck %s
+; RUN: opt -passes=reassociate -S < %s | FileCheck %s
 
 declare void @use(i32)
 
index d86fbf4..7b1a7d9 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -reassociate < %s | FileCheck %s
+; RUN: opt -S -passes=reassociate < %s | FileCheck %s
 
 define void @main(float, float) {
 ; CHECK-LABEL: @main(
index d74d312..8b060ad 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 define float @test1(float %A) {
 ; CHECK-LABEL: @test1(
index 9a96afa..0b88a65 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; Check that a*c+b*c is turned into (a+b)*c
 
index 189613c..3e2a58f 100644 (file)
@@ -6,7 +6,7 @@
 ; - PhaseOrdering/fast-reassociate-gvn.ll
 ; - Reassociate/fast-basictest.ll
 ;
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; ((a + (-3)) + b) + 3 -> a + b
 ; That only works with both instcombine and reassociate passes enabled.
index 937c4c1..d1893b7 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -reassociate -S < %s | FileCheck %s
+; RUN: opt -passes=reassociate -S < %s | FileCheck %s
 
 declare void @use(float)
 
index 419e101..c06a8b7 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; Check that a*a*b+a*a*c is turned into a*(a*(b+c)).
 
index eac5b59..ccf0ea4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -reassociate -S < %s | FileCheck %s
+; RUN: opt -passes=reassociate -S < %s | FileCheck %s
 
 declare void @use(float)
 
index ef285ef..edc2ead 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -reassociate < %s | FileCheck %s
+; RUN: opt -S -passes=reassociate < %s | FileCheck %s
 
 define void @test1() {
 ; CHECK-LABEL: @test1(
index c3e8779..682708e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -reassociate < %s | FileCheck %s
+; RUN: opt -S -passes=reassociate < %s | FileCheck %s
 
 ; PR34231
 ;
index 06ac934..a1a029b 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; Basic pattern where two contiguous i8 loads form a wider i16 load
 define i16 @p0_i8_i8_i16(i8* %ptr) {
index 6130d43..0202662 100644 (file)
@@ -13,7 +13,7 @@
 ; In this case, we want to reassociate the specified expr so that i+j can be
 ; hoisted out of the inner most loop.
 ;
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 ; END.
 @.LC0 = internal global [4 x i8] c"%d\0A\00"           ; <[4 x i8]*> [#uses=1]
 
index 4771e3c..31f3870 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; PR37098 - https://bugs.llvm.org/show_bug.cgi?id=37098
 ; In all positive tests, we should reassociate binops
index 4cbeaad..3419778 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 define i32 @test1(i32 %a, i32 %b) {
 ; CHECK-LABEL: @test1(
index 35a853d..4e54189 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; Check that a*a*b+a*a*c is turned into a*(a*(b+c)).
 
index 21b2112..4718d9d 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; Test that we can turn things like X*-(Y*Z) -> X*-1*Y*Z.
 
index 248766d..1ee3e2c 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; When there is nothing to do, or not much to do, check that reassociate leaves
 ; things alone.
index 00c2d0a..766e430 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -S -reassociate < %s | FileCheck %s
+; RUN: opt -S -passes=reassociate < %s | FileCheck %s
 ; rdar://8944681
 
 ; Reassociate should clear optional flags like nsw when reassociating.
index 0c6fd3a..c2ac84a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -reassociate -S < %s | FileCheck %s
+; RUN: opt -passes=reassociate -S < %s | FileCheck %s
 ; PR21205
 
 @a = common global i32 0, align 4
index 55a6fcb..b868853 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -reassociate -S
+; RUN: opt < %s -passes=reassociate -S
 
 ; PR28367
 
index d888f68..3bed059 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 define  float @wibble(float %tmp6) #0 {
 ; CHECK-LABEL: @wibble(
index fe47721..e9daad3 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 define double @func(double %a, double %b) {
 ; CHECK-LABEL: @func(
index 7f247de..9b2bbf2 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; B * 5 + A * -5
 ; TODO: (B - A) * 5
index 1addee5..c5a83c3 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -reassociate -S -o - | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S -o - | FileCheck %s
 
 ; After reassociation m1 and m2 aren't calculated as m1=c*a and m2=c*b any longer.
 ; So let's verify that the dbg.value nodes for m1 and m3 are invalidated.
index 34e0b9a..926131f 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; Check that reassociate pass now salvages debug info when dropping instructions.
 
index 547cb0a..c18db19 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -reassociate -S | FileCheck %s
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s
 
 ; Tests involving repeated operations on the same value.
 
index a52000a..87a6691 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -reassociate < %s | FileCheck %s
+; RUN: opt -S -passes=reassociate < %s | FileCheck %s
 ; rdar://9167457
 
 ; Reassociate shouldn't break this testcase involving a secondary
index 349da85..777bfc9 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -reassociate -S | FileCheck %s\r
+; RUN: opt < %s -passes=reassociate -S | FileCheck %s\r
 \r
 ; Check that reassociate pass now undefs debug intrinsics that reference a value\r
 ; that gets dropped and cannot be salvaged.\r
index 81b0311..73d9abb 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-;RUN: opt -S -reassociate < %s | FileCheck %s
+;RUN: opt -S -passes=reassociate < %s | FileCheck %s
 
 ; ==========================================================================
 ;
index 1bb039b..a502170 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -sink -S | FileCheck %s
+; RUN: opt < %s -passes=sink -S | FileCheck %s
 declare void @foo(i64 *)
 declare i8* @llvm.load.relative.i32(i8* %ptr, i32 %offset) argmemonly nounwind readonly
 define i64 @sinkload(i1 %cmp, i8* %ptr, i32 %off) {
index 97e70ce..790e386 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -sink -S | FileCheck %s
+; RUN: opt < %s -passes=sink -S | FileCheck %s
 ; RUN: opt < %s -aa-pipeline='basic-aa' -passes='sink' -S | FileCheck %s
 
 @A = external global i32
index f6ffc0b..c094067 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt < %s -sink -S | FileCheck %s
+; RUN: opt < %s -passes=sink -S | FileCheck %s
 
 declare i32 @f_load_global() nounwind willreturn readonly
 declare i32 @f_load_global_throwable() willreturn readonly
index 2648f85..1da1e86 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -sink -S < %s | FileCheck %s
+; RUN: opt -passes=sink -S < %s | FileCheck %s
 
 target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
 target triple = "i686-pc-windows-msvc"
index 292162b..de0f6c2 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -sink -S < %s | FileCheck %s
+; RUN: opt -passes=sink -S < %s | FileCheck %s
 
 ; Verify that IR sinking does not move convergent operations to
 ; blocks that are not control equivalent.
index 2d21def..9478e29 100644 (file)
@@ -1,5 +1,5 @@
 ; Compiler should not be broken with a dead user.
-; RUN: opt -sink -S < %s | FileCheck %s
+; RUN: opt -passes=sink -S < %s | FileCheck %s
 
 ; CHECK-LABEL: @test(
 ; CHECK:       bb.0:
index 09aa565..21f6fb6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -sink < %s | FileCheck %s
+; RUN: opt -S -passes=sink < %s | FileCheck %s
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
 
index 0e5ab2f..c3bce49 100644 (file)
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -sink -S < %s | FileCheck %s
+; RUN: opt -passes=sink -S < %s | FileCheck %s
 
 ; Loads marked invariant can be sunk across critical edges
 
index 10548fd..b90ef61 100644 (file)
@@ -1,5 +1,5 @@
 ; Test that we don't sink landingpads
-; RUN: opt -sink -S < %s | FileCheck %s
+; RUN: opt -passes=sink -S < %s | FileCheck %s
 
 declare hidden void @g()
 declare void @h()
index b49a8ff..65f2483 100644 (file)
@@ -1,16 +1,16 @@
-; RUN: opt < %s -deadargelim \
+; RUN: opt < %s -passes=deadargelim \
 ; RUN:     -verify-each-debuginfo-preserve \
 ; RUN:     -debugify-level=locations -S 2>&1 | FileCheck %s
 
-; RUN: opt < %s -deadargelim \
+; RUN: opt < %s -passes=deadargelim \
 ; RUN:     -verify-each-debuginfo-preserve \
 ; RUN:     -debugify-level=location+variables -S 2>&1 | FileCheck %s --check-prefix=CHECK-DROP
 
-; RUN: opt < %s -deadargelim \
+; RUN: opt < %s -passes=deadargelim \
 ; RUN:     -verify-each-debuginfo-preserve \
 ; RUN:     -debugify-func-limit=0 -S 2>&1 | FileCheck %s
 
-; RUN: opt < %s -deadargelim \
+; RUN: opt < %s -passes=deadargelim \
 ; RUN:     -verify-each-debuginfo-preserve \
 ; RUN:     -debugify-func-limit=2 -S 2>&1 | FileCheck %s --check-prefix=CHECK-DROP
 
index 8e04c22..e649bcb 100644 (file)
@@ -1,9 +1,5 @@
-; RUN: opt -vector-library=SVML       -inject-tli-mappings        -S < %s | FileCheck %s  --check-prefixes=COMMON,SVML
 ; RUN: opt -vector-library=SVML       -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,SVML
-; RUN: opt -vector-library=MASSV      -inject-tli-mappings        -S < %s | FileCheck %s  --check-prefixes=COMMON,MASSV
 ; RUN: opt -vector-library=MASSV      -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,MASSV
-; RUN: opt -vector-library=Accelerate -inject-tli-mappings        -S < %s | FileCheck %s  --check-prefixes=COMMON,ACCELERATE
-; RUN: opt -vector-library=LIBMVEC-X86 -inject-tli-mappings        -S < %s | FileCheck %s  --check-prefixes=COMMON,LIBMVEC-X86
 ; RUN: opt -vector-library=LIBMVEC-X86 -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,LIBMVEC-X86
 ; RUN: opt -vector-library=Accelerate -passes=inject-tli-mappings -S < %s | FileCheck %s  --check-prefixes=COMMON,ACCELERATE
 
index 88ebe60..a0fa79a 100644 (file)
@@ -1,5 +1,3 @@
-; RUN: opt -annotation-remarks -pass-remarks-missed='annotation-remarks' -disable-output -pass-remarks-output=%t.opt.yaml %s
-; RUN: FileCheck --input-file=%t.opt.yaml %s
 ; RUN: opt -passes='annotation-remarks' -pass-remarks-missed='annotation-remarks' -disable-output -pass-remarks-output=%t.opt.yaml %s
 ; RUN: FileCheck --input-file=%t.opt.yaml %s
 
index 8415c40..c18aaa9 100644 (file)
@@ -1,5 +1,3 @@
-; RUN: opt -annotation-remarks -pass-remarks-missed='annotation-remarks' -disable-output -pass-remarks-output=%t.opt.yaml %s
-; RUN: FileCheck --input-file=%t.opt.yaml %s
 ; RUN: opt -passes='annotation-remarks' -pass-remarks-missed='annotation-remarks' -disable-output -pass-remarks-output=%t.opt.yaml %s
 ; RUN: FileCheck --input-file=%t.opt.yaml %s
 
index 1494022..35ec3e7 100644 (file)
@@ -1,5 +1,4 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -annotation2metadata -pass-remarks-analysis='annotation-remarks' -S %s | FileCheck %s
 ; RUN: opt -passes='annotation2metadata' -pass-remarks-analysis='annotation-remarks' -S %s | FileCheck %s
 
 @.str = private unnamed_addr constant [10 x i8] c"_remarks1\00", section "llvm.metadata"
index 35c99cb..1e8e8b5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt < %s -S -memcpyopt | FileCheck %s
+; RUN: opt < %s -S -passes=memcpyopt | FileCheck %s
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 
 define void @test(ptr noalias dereferenceable(1) %in, ptr noalias dereferenceable(1) %out) {
index 42ced41..f3da1a6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -instcombine -S %s | FileCheck %s
+; RUN: opt -passes=instcombine -S %s | FileCheck %s
 
 define dso_local void @_Z1fv() {
   %1 = alloca i32, align 4
index d27d9c5..ad418e1 100644 (file)
@@ -1,7 +1,7 @@
 ; Checks that llvm.dbg.declare -> llvm.dbg.value conversion utility
 ; (here exposed through the SROA) pass refers to [s|z]exts of values (as
 ; opposed to the operand of a [s|z]ext).
-; RUN: opt -S -sroa %s | FileCheck %s
+; RUN: opt -S -passes=sroa %s | FileCheck %s
 
 ; Built from:
 ; struct foo { bool b; long i; };
index 1efbcfa..ad23bf7 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -instcombine -o - %s | FileCheck %s
+; RUN: opt -S -passes=instcombine -o - %s | FileCheck %s
 
 ; Test that fast math lib call simplification of double math function to float
 ; equivalent doesn't occur when the calling function matches the float
index d015a9d..3357ed8 100644 (file)
@@ -1,5 +1,3 @@
-; RUN: opt < %s -libcalls-shrinkwrap -S | FileCheck %s
-; New PM
 ; RUN: opt < %s -passes=libcalls-shrinkwrap -S | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
index 4affc00..43583cd 100644 (file)
@@ -1,5 +1,3 @@
-; RUN: opt < %s -libcalls-shrinkwrap -S | FileCheck %s
-; New PM
 ; RUN: opt < %s -passes=libcalls-shrinkwrap -S | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
index 54a31e5..d84473d 100644 (file)
@@ -1,5 +1,3 @@
-; RUN: opt < %s -libcalls-shrinkwrap -S | FileCheck %s
-; New PM
 ; RUN: opt < %s -passes=libcalls-shrinkwrap -S | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
index b877d1b..566104e 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt -adce %s -S -o - | FileCheck %s
-; RUN: opt -bdce %s -S -o - | FileCheck %s
+; RUN: opt -passes=adce %s -S -o - | FileCheck %s
+; RUN: opt -passes=bdce %s -S -o - | FileCheck %s
 target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-apple-macosx"
 define void @f(i32) !dbg !8 {
index 7a37ac4..75f0dbb 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: opt -instcombine -instcombine-lower-dbg-declare=1 -S < %s | FileCheck %s
-; RUN: opt -instcombine -instcombine-lower-dbg-declare=0 -S < %s | FileCheck %s --check-prefix=DECLARE
+; RUN: opt -passes=instcombine -instcombine-lower-dbg-declare=1 -S < %s | FileCheck %s
+; RUN: opt -passes=instcombine -instcombine-lower-dbg-declare=0 -S < %s | FileCheck %s --check-prefix=DECLARE
 ; XFAIL: *
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-pc-linux-gnu"
index d88138d..199a1ec 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -instcombine -S %s | FileCheck %s
+; RUN: opt -passes=instcombine -S %s | FileCheck %s
 
 %foo = type { i8 }
 
index 215a4fa..0478215 100644 (file)
@@ -1,4 +1,3 @@
-; RUN: opt -S -strip-gc-relocates -instcombine < %s | FileCheck %s
 ; RUN: opt -S -passes=strip-gc-relocates,instcombine < %s | FileCheck %s
 ; test utility/debugging pass which removes gc.relocates, inserted by -rewrite-statepoints-for-gc
 declare void @use_obj32(ptr addrspace(1)) "gc-leaf-function"
index 286491b..6b92264 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -strip-nonlinetable-debuginfo %s -o %t.ll
+; RUN: opt -S -passes=strip-nonlinetable-debuginfo %s -o %t.ll
 ; RUN: cat %t.ll | FileCheck %s
 ; RUN: cat %t.ll | FileCheck %s --check-prefix=CHECK-NEG
 ;
index 71145dd..4707404 100644 (file)
@@ -1,4 +1,3 @@
-; RUN: opt -S -strip-nonlinetable-debuginfo %s -o - | FileCheck %s
 ; RUN: opt -S -passes=strip-nonlinetable-debuginfo %s -o - | FileCheck %s
 !llvm.dbg.cu = !{!2, !6}
 !llvm.gcov = !{!3}
index 02d9676..30f25e6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -strip-nonlinetable-debuginfo %s -o - |  FileCheck %s
+; RUN: opt -S -passes=strip-nonlinetable-debuginfo %s -o - |  FileCheck %s
 ; RUN: opt -S -strip-debug %s -o - |  FileCheck %s
 ; int *get() { return new int[256]; }
 ; ModuleID = '/tmp/heapallocsite.cpp'
index ed48add..bd20e8c 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -strip-nonlinetable-debuginfo %s -o - | FileCheck %s
+; RUN: opt -S -passes=strip-nonlinetable-debuginfo %s -o - | FileCheck %s
 ; CHECK: define void @f()
 define void @f() !dbg !4 {
 entry:
index fa687a4..8b3f71a 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -strip-nonlinetable-debuginfo %s -o - | FileCheck %s
+; RUN: opt -S -passes=strip-nonlinetable-debuginfo %s -o - | FileCheck %s
 ; CHECK: define void @f() !dbg ![[F:[0-9]+]]
 define void @f() !dbg !4 {
 entry:
index 5dc4b1d..2acf4f4 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -strip-nonlinetable-debuginfo %s -o %t
+; RUN: opt -S -passes=strip-nonlinetable-debuginfo %s -o %t
 ; RUN: cat %t | FileCheck %s
 ; RUN: cat %t | FileCheck %s --check-prefix=NEGATIVE
 ; void f(volatile int *i) {
index 6dce41f..d1a66f5 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: opt -S -strip-nonlinetable-debuginfo %s -o - | FileCheck %s
+; RUN: opt -S -passes=strip-nonlinetable-debuginfo %s -o - | FileCheck %s
 ; Test that subroutine types are downgraded to (void)().
 define internal i32 @"__hidden#2878_"() #0 !dbg !12 {
   ret i32 0, !dbg !634