From 9adbb5cb3a56f77bc3739da10cacafca36d5bedf Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Thu, 16 Jul 2020 11:09:47 -0700 Subject: [PATCH] [SCEV] Fix ScalarEvolution tests under NPM Many tests use opt's -analyze feature, which does not translate well to NPM and has better alternatives. The alternative here is to explicitly add a pass that calls ScalarEvolution::print(). The legacy pass manager RUNs aren't changing, but they are now pinned to the legacy pass manager. For each legacy pass manager RUN, I added a corresponding NPM RUN using the 'print' pass. For compatibility with update_analyze_test_checks.py and existing test CHECKs, 'print' now prints what -analyze prints per function. This was generated by the following Python script and failures were manually fixed up: import sys for i in sys.argv: with open(i, 'r') as f: s = f.read() with open(i, 'w') as f: for l in s.splitlines(): if "RUN:" in l and ' -analyze ' in l and '\\' not in l: f.write(l.replace(' -analyze ', ' -analyze -enable-new-pm=0 ')) f.write('\n') f.write(l.replace(' -analyze ', ' -disable-output ').replace(' -scalar-evolution ', ' "-passes=print" ').replace(" | ", " 2>&1 | ")) f.write('\n') else: f.write(l) There are a couple failures still in ScalarEvolution under NPM, but those are due to other unrelated naming conflicts. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D83798 --- llvm/lib/Analysis/ScalarEvolution.cpp | 5 +++++ .../Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll | 3 ++- .../Analysis/ScalarEvolution/2007-09-27-LargeStepping.ll | 3 ++- .../Analysis/ScalarEvolution/2007-11-18-OrInstruction.ll | 3 ++- .../ScalarEvolution/2008-02-11-ReversedCondition.ll | 3 ++- .../Analysis/ScalarEvolution/2008-02-12-SMAXTripCount.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/2008-02-15-UMax.ll | 3 ++- .../ScalarEvolution/2008-05-25-NegativeStepToZero.ll | 3 ++- .../Analysis/ScalarEvolution/2008-06-12-BinomialInt64.ll | 3 ++- .../Analysis/ScalarEvolution/2008-07-12-UnneededSelect1.ll | 3 ++- .../Analysis/ScalarEvolution/2008-07-12-UnneededSelect2.ll | 3 ++- .../Analysis/ScalarEvolution/2008-07-19-InfiniteLoop.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/2008-07-19-WrappingIV.ll | 3 ++- .../Analysis/ScalarEvolution/2008-07-29-SGTTripCount.ll | 4 ++-- llvm/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll | 4 ++-- llvm/test/Analysis/ScalarEvolution/2008-08-04-IVOverflow.ll | 4 ++-- llvm/test/Analysis/ScalarEvolution/2008-08-04-LongAddRec.ll | 4 ++-- .../Analysis/ScalarEvolution/2008-11-02-QuadraticCrash.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/2008-11-15-CubicOOM.ll | 3 ++- .../Analysis/ScalarEvolution/2008-11-18-LessThanOrEqual.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride1.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride2.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/2008-12-08-FiniteSGE.ll | 3 ++- .../Analysis/ScalarEvolution/2008-12-11-SMaxOverflow.ll | 3 ++- .../Analysis/ScalarEvolution/2008-12-14-StrideAndSigned.ll | 3 ++- .../test/Analysis/ScalarEvolution/2008-12-15-DontUseSDiv.ll | 3 ++- .../ScalarEvolution/2009-01-02-SignedNegativeStride.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/2009-04-22-TruncCast.ll | 3 ++- .../Analysis/ScalarEvolution/2009-05-09-PointerEdgeCount.ll | 3 ++- .../2009-07-04-GroupConstantsWidthMismatch.ll | 3 ++- .../ScalarEvolution/2010-09-03-RequiredTransitive.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/2011-04-26-FoldAddRec.ll | 3 ++- .../test/Analysis/ScalarEvolution/2011-10-04-ConstEvolve.ll | 3 ++- .../test/Analysis/ScalarEvolution/SolveQuadraticEquation.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/ZeroStep.ll | 3 ++- .../ScalarEvolution/add-expr-pointer-operand-sorting.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/add-like-or.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/and-xor.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/avoid-assume-hang.ll | 5 +++-- .../Analysis/ScalarEvolution/avoid-infinite-recursion-0.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/avoid-smax-0.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/binomial-explision.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/constant_condition.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/different-loops-recs.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/div-overflow.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/do-loop.ll | 3 ++- .../ScalarEvolution/exact-exit-count-more-precise.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/exact_iter_count.ll | 3 ++- .../test/Analysis/ScalarEvolution/exhaustive-trip-counts.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/exponential-behavior.ll | 3 ++- .../ScalarEvolution/extract-highbits-sameconstmask.ll | 3 ++- .../ScalarEvolution/extract-highbits-variablemask.ll | 3 ++- .../ScalarEvolution/extract-lowbits-sameconstmask.ll | 3 ++- .../ScalarEvolution/extract-lowbits-variablemask.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/flags-from-poison-dbg.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/flags-from-poison.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/flattened-0.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/fold.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/how-far-to-zero.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/huge_expression_limit.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/implied-via-division.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/incorrect-nsw.ll | 3 ++- .../Analysis/ScalarEvolution/increasing-or-decreasing-iv.ll | 3 ++- .../test/Analysis/ScalarEvolution/infer-prestart-no-wrap.ll | 3 ++- .../ScalarEvolution/inner-loop-by-latch-cond-unknown.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/limit-depth.ll | 3 ++- .../Analysis/ScalarEvolution/load-with-range-metadata.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/load.ll | 3 ++- .../Analysis/ScalarEvolution/lshr-shl-differentconstmask.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/max-addops-inline.ll | 6 ++++-- llvm/test/Analysis/ScalarEvolution/max-addrec-size.ll | 3 ++- .../Analysis/ScalarEvolution/max-be-count-not-constant.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/max-expr-cache.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/max-mulops-inline.ll | 6 ++++-- .../ScalarEvolution/max-trip-count-address-space.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/max-trip-count.ll | 3 ++- .../Analysis/ScalarEvolution/merge-add-rec-many-inputs.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/min-max-exprs.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/no-wrap-add-exprs.ll | 3 ++- .../Analysis/ScalarEvolution/no-wrap-unknown-becount.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/non-IV-phi.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/nowrap-preinc-limits.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/nsw-offset-assume.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/nsw-offset.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/nsw.ll | 3 ++- .../ScalarEvolution/overflow-intrinsics-trip-count.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/overflow-intrinsics.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/pointer-sign-bits.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/pr22179.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/pr22641.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/pr24757.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/pr25369.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/pr27315.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/pr34538.ll | 6 ++++-- llvm/test/Analysis/ScalarEvolution/pr40420.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/predicated-trip-count.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/range-signedness.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/range_nw_flag.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/returned.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/scalable-vector.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/scev-dispositions.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/scev-prestart-nowrap.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/sdiv.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/sext-inreg.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/sext-iv-0.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll | 4 ++-- llvm/test/Analysis/ScalarEvolution/sext-iv-2.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/sext-mul.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/sext-to-zext.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/sext-zero.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/shift-op.ll | 3 ++- .../Analysis/ScalarEvolution/shl-lshr-differentconstmask.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/sle.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/smax-br-phi-idioms.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/smax.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/solve-quadratic-i1.ll | 3 ++- .../Analysis/ScalarEvolution/solve-quadratic-overflow.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/solve-quadratic.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/srem.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/strip-injective-zext.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count-andor.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count-pow2.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count-switch.ll | 3 ++- .../Analysis/ScalarEvolution/trip-count-unknown-stride.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count10.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count11.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count12.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count13.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count14.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count15.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count2.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count3.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count4.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count5.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count6.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count7.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count8.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trip-count9.ll | 3 ++- .../Analysis/ScalarEvolution/tripmultiple_calculation.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/trunc-simplify.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/truncate.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/umin-umax-folds.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/undefined.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/unknown_phis.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/unreachable-code.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/unsimplified-loop.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/urem-0.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/widenable-condition.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/zext-divrem.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/zext-mul.ll | 3 ++- llvm/test/Analysis/ScalarEvolution/zext-wrap.ll | 3 ++- 154 files changed, 318 insertions(+), 162 deletions(-) diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 48c686b7326086..755a4e9685211f 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -11937,6 +11937,11 @@ ScalarEvolutionVerifierPass::run(Function &F, FunctionAnalysisManager &AM) { PreservedAnalyses ScalarEvolutionPrinterPass::run(Function &F, FunctionAnalysisManager &AM) { + // For compatibility with opt's -analyze feature under legacy pass manager + // which was not ported to NPM. This keeps tests using + // update_analyze_test_checks.py working. + OS << "Printing analysis 'Scalar Evolution Analysis' for function '" + << F.getName() << "':\n"; AM.getResult(F).print(OS); return PreservedAnalyses::all(); } diff --git a/llvm/test/Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll b/llvm/test/Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll index 7380da3ae7f87f..e927ba1bccbae7 100644 --- a/llvm/test/Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll +++ b/llvm/test/Analysis/ScalarEvolution/2007-07-15-NegativeStride.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-max-iterations=0 2>&1 | FileCheck %s ; PR1533 @array = weak global [101 x i32] zeroinitializer, align 32 ; <[100 x i32]*> [#uses=1] diff --git a/llvm/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll b/llvm/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll index 9e19ccab6eb1cd..52601823de284e 100644 --- a/llvm/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll +++ b/llvm/test/Analysis/ScalarEvolution/2007-08-06-Unsigned.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s ; PR1597 ; CHECK: Loop %bb: backedge-taken count is (-1 + (-1 * %x) + %y) diff --git a/llvm/test/Analysis/ScalarEvolution/2007-09-27-LargeStepping.ll b/llvm/test/Analysis/ScalarEvolution/2007-09-27-LargeStepping.ll index b65a5250244749..f766674460dfc1 100644 --- a/llvm/test/Analysis/ScalarEvolution/2007-09-27-LargeStepping.ll +++ b/llvm/test/Analysis/ScalarEvolution/2007-09-27-LargeStepping.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-max-iterations=0 2>&1 | FileCheck %s ; PR1706 ; CHECK: backedge-taken count is 13 diff --git a/llvm/test/Analysis/ScalarEvolution/2007-11-18-OrInstruction.ll b/llvm/test/Analysis/ScalarEvolution/2007-11-18-OrInstruction.ll index c12721d82f0116..ce6d298443f240 100644 --- a/llvm/test/Analysis/ScalarEvolution/2007-11-18-OrInstruction.ll +++ b/llvm/test/Analysis/ScalarEvolution/2007-11-18-OrInstruction.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; PR1810 define void @fun() { diff --git a/llvm/test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll b/llvm/test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll index 6ebfa61de41d1c..33fc682d4b1fa8 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-02-11-ReversedCondition.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s ; CHECK: Loop %header: backedge-taken count is (0 smax %n) diff --git a/llvm/test/Analysis/ScalarEvolution/2008-02-12-SMAXTripCount.ll b/llvm/test/Analysis/ScalarEvolution/2008-02-12-SMAXTripCount.ll index ce0329d9ce8c94..cec11a8f9fb8ab 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-02-12-SMAXTripCount.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-02-12-SMAXTripCount.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s ; PR2002 ; CHECK: Loop %loop: backedge-taken count is (100 + (-100 smax %n)) diff --git a/llvm/test/Analysis/ScalarEvolution/2008-02-15-UMax.ll b/llvm/test/Analysis/ScalarEvolution/2008-02-15-UMax.ll index 527fd273cd25ba..34c1f34f11fbaf 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-02-15-UMax.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-02-15-UMax.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; PR2003 ; CHECK: umax diff --git a/llvm/test/Analysis/ScalarEvolution/2008-05-25-NegativeStepToZero.ll b/llvm/test/Analysis/ScalarEvolution/2008-05-25-NegativeStepToZero.ll index 9a05d88c4ce7cf..2ab3f6d7004d41 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-05-25-NegativeStepToZero.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-05-25-NegativeStepToZero.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-max-iterations=0 2>&1 | FileCheck %s ; PR2364 ; CHECK: backedge-taken count is 61 diff --git a/llvm/test/Analysis/ScalarEvolution/2008-06-12-BinomialInt64.ll b/llvm/test/Analysis/ScalarEvolution/2008-06-12-BinomialInt64.ll index d503329292c7da..09b924c726a5af 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-06-12-BinomialInt64.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-06-12-BinomialInt64.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution 2>/dev/null +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution 2>/dev/null +; RUN: opt < %s -disable-output "-passes=print" 2>/dev/null ; PR2433 define i32 @main1(i32 %argc, i8** %argv) nounwind { diff --git a/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect1.ll b/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect1.ll index 7e42530798f622..a0bb0978f65d79 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect1.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect1.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 2>&1 | FileCheck %s ; PR2261 ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'foo' diff --git a/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect2.ll b/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect2.ll index c804bd905510c8..964300fffe4eb6 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect2.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-07-12-UnneededSelect2.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 2>&1 | FileCheck %s ; PR2070 ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'a' diff --git a/llvm/test/Analysis/ScalarEvolution/2008-07-19-InfiniteLoop.ll b/llvm/test/Analysis/ScalarEvolution/2008-07-19-InfiniteLoop.ll index ad34f6cedf61d5..808f315173f3e3 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-07-19-InfiniteLoop.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-07-19-InfiniteLoop.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-max-iterations=0 2>&1 | FileCheck %s ; PR2088 ; CHECK: Unpredictable diff --git a/llvm/test/Analysis/ScalarEvolution/2008-07-19-WrappingIV.ll b/llvm/test/Analysis/ScalarEvolution/2008-07-19-WrappingIV.ll index 82b9d560425e05..c9fe1bbf6fc969 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-07-19-WrappingIV.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-07-19-WrappingIV.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-max-iterations=0 2>&1 | FileCheck %s ; PR2088 ; CHECK: backedge-taken count is 113 diff --git a/llvm/test/Analysis/ScalarEvolution/2008-07-29-SGTTripCount.ll b/llvm/test/Analysis/ScalarEvolution/2008-07-29-SGTTripCount.ll index 75bd634b3ef127..d7c7e4ef12d7d1 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-07-29-SGTTripCount.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-07-29-SGTTripCount.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution \ -; RUN: -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-max-iterations=0 2>&1 | FileCheck %s ; PR2607 define i32 @_Z1aj(i32 %j) nounwind { diff --git a/llvm/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll b/llvm/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll index d930706d7d2acb..1deb654f79de6e 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-07-29-SMinExpr.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution \ -; RUN: -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-max-iterations=0 2>&1 | FileCheck %s ; PR2607 define i32 @b(i32 %x, i32 %y) nounwind { diff --git a/llvm/test/Analysis/ScalarEvolution/2008-08-04-IVOverflow.ll b/llvm/test/Analysis/ScalarEvolution/2008-08-04-IVOverflow.ll index 3b31d797cf4885..216988f9f8d2b6 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-08-04-IVOverflow.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-08-04-IVOverflow.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution \ -; RUN: -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-max-iterations=0 2>&1 | FileCheck %s ; PR2621 define i32 @a() nounwind { diff --git a/llvm/test/Analysis/ScalarEvolution/2008-08-04-LongAddRec.ll b/llvm/test/Analysis/ScalarEvolution/2008-08-04-LongAddRec.ll index b296a19716c8bd..edb083102aa451 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-08-04-LongAddRec.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-08-04-LongAddRec.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution \ -; RUN: -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-max-iterations=0 2>&1 | FileCheck %s ; PR2621 define i32 @a() nounwind { diff --git a/llvm/test/Analysis/ScalarEvolution/2008-11-02-QuadraticCrash.ll b/llvm/test/Analysis/ScalarEvolution/2008-11-02-QuadraticCrash.ll index 7722122117dc6f..0f6eeb6c3ff607 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-11-02-QuadraticCrash.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-11-02-QuadraticCrash.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution +; RUN: opt < %s -disable-output -scalar-evolution ; PR1827 declare void @use(i32) diff --git a/llvm/test/Analysis/ScalarEvolution/2008-11-15-CubicOOM.ll b/llvm/test/Analysis/ScalarEvolution/2008-11-15-CubicOOM.ll index 2e2aabc475a0ca..bcb6559d77a9cd 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-11-15-CubicOOM.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-11-15-CubicOOM.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution +; RUN: opt < %s -disable-output -scalar-evolution ; PR2602 define i32 @a() nounwind { diff --git a/llvm/test/Analysis/ScalarEvolution/2008-11-18-LessThanOrEqual.ll b/llvm/test/Analysis/ScalarEvolution/2008-11-18-LessThanOrEqual.ll index 84561c5c6dc93f..364f42ac0f91b4 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-11-18-LessThanOrEqual.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-11-18-LessThanOrEqual.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 2>&1 | FileCheck %s ; CHECK: Loop %bb: backedge-taken count is (7 + (-1 * %argc)) diff --git a/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride1.ll b/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride1.ll index 7acf90c7330cbb..d780feb1251e39 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride1.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride1.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; CHECK: Loop %bb: backedge-taken count is ((-5 + %x) /u 3) ; CHECK: Loop %bb: max backedge-taken count is 1431655764 diff --git a/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride2.ll b/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride2.ll index 2b2296a3a24fa6..cece09305e0c63 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride2.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-11-18-Stride2.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 2>&1 | FileCheck %s ; CHECK: Loop %bb: backedge-taken count is ((999 + (-1 * %x)) /u 3) ; CHECK: Loop %bb: max backedge-taken count is 334 diff --git a/llvm/test/Analysis/ScalarEvolution/2008-12-08-FiniteSGE.ll b/llvm/test/Analysis/ScalarEvolution/2008-12-08-FiniteSGE.ll index 0c24ee4eaff1fd..abe1272b35e87f 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-12-08-FiniteSGE.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-12-08-FiniteSGE.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; CHECK: backedge-taken count is 255 diff --git a/llvm/test/Analysis/ScalarEvolution/2008-12-11-SMaxOverflow.ll b/llvm/test/Analysis/ScalarEvolution/2008-12-11-SMaxOverflow.ll index 12254e37dcc77c..0c90b60859c0fd 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-12-11-SMaxOverflow.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-12-11-SMaxOverflow.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; CHECK: @f ; CHECK: Loop %bb16.preheader: backedge-taken count is (-1 + %c.idx.val) diff --git a/llvm/test/Analysis/ScalarEvolution/2008-12-14-StrideAndSigned.ll b/llvm/test/Analysis/ScalarEvolution/2008-12-14-StrideAndSigned.ll index 95aa1fc85e20cf..9e24519f2d1aeb 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-12-14-StrideAndSigned.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-12-14-StrideAndSigned.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 2>&1 | FileCheck %s ; XFAIL: * ; CHECK: (((-1 * %i0) + (100005 smax %i0)) /u 5) diff --git a/llvm/test/Analysis/ScalarEvolution/2008-12-15-DontUseSDiv.ll b/llvm/test/Analysis/ScalarEvolution/2008-12-15-DontUseSDiv.ll index 70588bc0574e89..97b686c676aa29 100644 --- a/llvm/test/Analysis/ScalarEvolution/2008-12-15-DontUseSDiv.ll +++ b/llvm/test/Analysis/ScalarEvolution/2008-12-15-DontUseSDiv.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 2>&1 | FileCheck %s ; CHECK: /u 5 diff --git a/llvm/test/Analysis/ScalarEvolution/2009-01-02-SignedNegativeStride.ll b/llvm/test/Analysis/ScalarEvolution/2009-01-02-SignedNegativeStride.ll index ebcecbf74294d6..75b51628763616 100644 --- a/llvm/test/Analysis/ScalarEvolution/2009-01-02-SignedNegativeStride.ll +++ b/llvm/test/Analysis/ScalarEvolution/2009-01-02-SignedNegativeStride.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; PR3275 ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'func_15' diff --git a/llvm/test/Analysis/ScalarEvolution/2009-04-22-TruncCast.ll b/llvm/test/Analysis/ScalarEvolution/2009-04-22-TruncCast.ll index a845465a26b51b..16bb84e4b50407 100644 --- a/llvm/test/Analysis/ScalarEvolution/2009-04-22-TruncCast.ll +++ b/llvm/test/Analysis/ScalarEvolution/2009-04-22-TruncCast.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'test1' ; CHECK-NOT: (trunc i{{.*}}ext diff --git a/llvm/test/Analysis/ScalarEvolution/2009-05-09-PointerEdgeCount.ll b/llvm/test/Analysis/ScalarEvolution/2009-05-09-PointerEdgeCount.ll index 4f6b90b39f6f20..487309bebd850f 100644 --- a/llvm/test/Analysis/ScalarEvolution/2009-05-09-PointerEdgeCount.ll +++ b/llvm/test/Analysis/ScalarEvolution/2009-05-09-PointerEdgeCount.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; PR3171 ; CHECK: count is 2 diff --git a/llvm/test/Analysis/ScalarEvolution/2009-07-04-GroupConstantsWidthMismatch.ll b/llvm/test/Analysis/ScalarEvolution/2009-07-04-GroupConstantsWidthMismatch.ll index d18bdaf7cba73b..6797d15dcb5af1 100644 --- a/llvm/test/Analysis/ScalarEvolution/2009-07-04-GroupConstantsWidthMismatch.ll +++ b/llvm/test/Analysis/ScalarEvolution/2009-07-04-GroupConstantsWidthMismatch.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution +; RUN: opt < %s -disable-output -scalar-evolution ; PR4501 define void @test() { diff --git a/llvm/test/Analysis/ScalarEvolution/2010-09-03-RequiredTransitive.ll b/llvm/test/Analysis/ScalarEvolution/2010-09-03-RequiredTransitive.ll index 5a02398104186c..2e28da170be541 100644 --- a/llvm/test/Analysis/ScalarEvolution/2010-09-03-RequiredTransitive.ll +++ b/llvm/test/Analysis/ScalarEvolution/2010-09-03-RequiredTransitive.ll @@ -1,4 +1,5 @@ -; RUN: opt -indvars -scalar-evolution -analyze < %s | FileCheck %s +; RUN: opt -indvars -scalar-evolution -analyze -enable-new-pm=0 < %s | FileCheck %s +; RUN: opt "-passes=loop(indvars),print" -disable-output < %s 2>&1 | FileCheck %s ; This test checks if the SCEV analysis is printed out at all. ; It failed once as the RequiredTransitive option was not implemented ; correctly. diff --git a/llvm/test/Analysis/ScalarEvolution/2011-04-26-FoldAddRec.ll b/llvm/test/Analysis/ScalarEvolution/2011-04-26-FoldAddRec.ll index 729b6433e31c5d..53d24eb2ee140b 100644 --- a/llvm/test/Analysis/ScalarEvolution/2011-04-26-FoldAddRec.ll +++ b/llvm/test/Analysis/ScalarEvolution/2011-04-26-FoldAddRec.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -iv-users +; RUN: opt < %s -analyze -enable-new-pm=0 -iv-users +; RUN: opt < %s -disable-output -iv-users ; RUN: opt < %s -passes='print' ; PR9633: Tests that SCEV handles the mul.i2 recurrence being folded to ; constant zero. diff --git a/llvm/test/Analysis/ScalarEvolution/2011-10-04-ConstEvolve.ll b/llvm/test/Analysis/ScalarEvolution/2011-10-04-ConstEvolve.ll index 29bb64ad642b94..32a65238db5e9f 100644 --- a/llvm/test/Analysis/ScalarEvolution/2011-10-04-ConstEvolve.ll +++ b/llvm/test/Analysis/ScalarEvolution/2011-10-04-ConstEvolve.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; Exercise getConstantEvolvingPHIOperands on an interesting loop. ; This should complete in milliseconds, not minutes. diff --git a/llvm/test/Analysis/ScalarEvolution/SolveQuadraticEquation.ll b/llvm/test/Analysis/ScalarEvolution/SolveQuadraticEquation.ll index f7ef0ea9e4847b..f4175fc7979a1e 100644 --- a/llvm/test/Analysis/ScalarEvolution/SolveQuadraticEquation.ll +++ b/llvm/test/Analysis/ScalarEvolution/SolveQuadraticEquation.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-iterations=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-max-iterations=0 2>&1 | FileCheck %s ; PR1101 diff --git a/llvm/test/Analysis/ScalarEvolution/ZeroStep.ll b/llvm/test/Analysis/ScalarEvolution/ZeroStep.ll index fc6ed018e90332..9d3b872110014f 100644 --- a/llvm/test/Analysis/ScalarEvolution/ZeroStep.ll +++ b/llvm/test/Analysis/ScalarEvolution/ZeroStep.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s -o - -S | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s -o - -S | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s -o - -S 2>&1 | FileCheck %s target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-apple-macosx10.9.0" diff --git a/llvm/test/Analysis/ScalarEvolution/add-expr-pointer-operand-sorting.ll b/llvm/test/Analysis/ScalarEvolution/add-expr-pointer-operand-sorting.ll index e164b7fc5e4310..93a3bf4d4c3786 100644 --- a/llvm/test/Analysis/ScalarEvolution/add-expr-pointer-operand-sorting.ll +++ b/llvm/test/Analysis/ScalarEvolution/add-expr-pointer-operand-sorting.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -S -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -disable-output "-passes=print" 2>&1 | FileCheck %s ; Reduced from test-suite/MultiSource/Benchmarks/MiBench/office-ispell/correct.c ; getelementptr, obviously, takes pointer as it's base, and returns a pointer. diff --git a/llvm/test/Analysis/ScalarEvolution/add-like-or.ll b/llvm/test/Analysis/ScalarEvolution/add-like-or.ll index c0be633f2eb3cc..73a82388d7e4d6 100644 --- a/llvm/test/Analysis/ScalarEvolution/add-like-or.ll +++ b/llvm/test/Analysis/ScalarEvolution/add-like-or.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -S -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -disable-output "-passes=print" 2>&1 | FileCheck %s define i8 @or-of-constant-with-no-common-bits-set(i8 %x, i8 %y) { ; CHECK-LABEL: 'or-of-constant-with-no-common-bits-set' diff --git a/llvm/test/Analysis/ScalarEvolution/and-xor.ll b/llvm/test/Analysis/ScalarEvolution/and-xor.ll index 8217e1a1d91e60..aa57d9d043ba78 100644 --- a/llvm/test/Analysis/ScalarEvolution/and-xor.ll +++ b/llvm/test/Analysis/ScalarEvolution/and-xor.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s ; CHECK-LABEL: @test1 ; CHECK: --> (zext diff --git a/llvm/test/Analysis/ScalarEvolution/avoid-assume-hang.ll b/llvm/test/Analysis/ScalarEvolution/avoid-assume-hang.ll index e2428ed1f73f74..3a5abc46dbe6a7 100644 --- a/llvm/test/Analysis/ScalarEvolution/avoid-assume-hang.ll +++ b/llvm/test/Analysis/ScalarEvolution/avoid-assume-hang.ll @@ -1,4 +1,5 @@ -; RUN: opt %s -always-inline | opt -analyze -scalar-evolution +; RUN: opt %s -always-inline | opt -analyze -enable-new-pm=0 -scalar-evolution +; RUN: opt %s -always-inline 2>&1 | opt -disable-output -scalar-evolution ; There was optimization bug in ScalarEvolution, that causes too long ; compute time and stack overflow crash. @@ -136,4 +137,4 @@ loop: exit: ret void -} \ No newline at end of file +} diff --git a/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-0.ll b/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-0.ll index 0976ef92985ce9..20a42320883d50 100644 --- a/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-0.ll +++ b/llvm/test/Analysis/ScalarEvolution/avoid-infinite-recursion-0.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution +; RUN: opt < %s -disable-output -scalar-evolution ; PR4537 ; ModuleID = 'b.bc' diff --git a/llvm/test/Analysis/ScalarEvolution/avoid-smax-0.ll b/llvm/test/Analysis/ScalarEvolution/avoid-smax-0.ll index a282ee6993f01d..f3603de2afadf1 100644 --- a/llvm/test/Analysis/ScalarEvolution/avoid-smax-0.ll +++ b/llvm/test/Analysis/ScalarEvolution/avoid-smax-0.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s ; CHECK: Loop %bb3: backedge-taken count is (-1 + %n) diff --git a/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll b/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll index 50c30431af5854..52fc3285e3b8c5 100644 --- a/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll +++ b/llvm/test/Analysis/ScalarEvolution/avoid-smax-1.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution -S | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -S | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -S 2>&1 | FileCheck %s ; Indvars should be able to find the trip count for the bb6 loop ; without using a maximum calculation (icmp, select) because it should diff --git a/llvm/test/Analysis/ScalarEvolution/binomial-explision.ll b/llvm/test/Analysis/ScalarEvolution/binomial-explision.ll index ff27bfcbd764e1..7513378bf2a4b9 100644 --- a/llvm/test/Analysis/ScalarEvolution/binomial-explision.ll +++ b/llvm/test/Analysis/ScalarEvolution/binomial-explision.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:1" diff --git a/llvm/test/Analysis/ScalarEvolution/constant_condition.ll b/llvm/test/Analysis/ScalarEvolution/constant_condition.ll index 32ab91b2c857b9..f4dee5da32b173 100644 --- a/llvm/test/Analysis/ScalarEvolution/constant_condition.ll +++ b/llvm/test/Analysis/ScalarEvolution/constant_condition.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define i32 @branch_true(i32 %x, i32 %y) { ; CHECK-LABEL: Classifying expressions for: @branch_true diff --git a/llvm/test/Analysis/ScalarEvolution/different-loops-recs.ll b/llvm/test/Analysis/ScalarEvolution/different-loops-recs.ll index 1af50352e3ff5a..074d150b1e0389 100644 --- a/llvm/test/Analysis/ScalarEvolution/different-loops-recs.ll +++ b/llvm/test/Analysis/ScalarEvolution/different-loops-recs.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; This test set ensures that we can correctly operate with recurrencies from ; different loops. diff --git a/llvm/test/Analysis/ScalarEvolution/div-overflow.ll b/llvm/test/Analysis/ScalarEvolution/div-overflow.ll index aca964ae62b6e4..f05e87e29f33b9 100644 --- a/llvm/test/Analysis/ScalarEvolution/div-overflow.ll +++ b/llvm/test/Analysis/ScalarEvolution/div-overflow.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s ; CHECK: --> ((-128 * %a) /u -128) diff --git a/llvm/test/Analysis/ScalarEvolution/do-loop.ll b/llvm/test/Analysis/ScalarEvolution/do-loop.ll index e35ea7d57e3a5d..1cbd3719ea9f06 100644 --- a/llvm/test/Analysis/ScalarEvolution/do-loop.ll +++ b/llvm/test/Analysis/ScalarEvolution/do-loop.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; PR1614 ; CHECK: smax diff --git a/llvm/test/Analysis/ScalarEvolution/exact-exit-count-more-precise.ll b/llvm/test/Analysis/ScalarEvolution/exact-exit-count-more-precise.ll index 8b1f878b1c0a7b..fa49bf39fae1c2 100644 --- a/llvm/test/Analysis/ScalarEvolution/exact-exit-count-more-precise.ll +++ b/llvm/test/Analysis/ScalarEvolution/exact-exit-count-more-precise.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" %s 2>&1 | FileCheck %s target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Analysis/ScalarEvolution/exact_iter_count.ll b/llvm/test/Analysis/ScalarEvolution/exact_iter_count.ll index 443da146e771d1..e4f4ef3147b441 100644 --- a/llvm/test/Analysis/ScalarEvolution/exact_iter_count.ll +++ b/llvm/test/Analysis/ScalarEvolution/exact_iter_count.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s ; One side exit dominating the latch, exact backedge taken count is known. define void @test_01() { diff --git a/llvm/test/Analysis/ScalarEvolution/exhaustive-trip-counts.ll b/llvm/test/Analysis/ScalarEvolution/exhaustive-trip-counts.ll index 16d9cc54438720..83659ceea685c9 100644 --- a/llvm/test/Analysis/ScalarEvolution/exhaustive-trip-counts.ll +++ b/llvm/test/Analysis/ScalarEvolution/exhaustive-trip-counts.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | 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/Analysis/ScalarEvolution/exponential-behavior.ll b/llvm/test/Analysis/ScalarEvolution/exponential-behavior.ll index 919521a58b6d1a..867a4d08b77620 100644 --- a/llvm/test/Analysis/ScalarEvolution/exponential-behavior.ll +++ b/llvm/test/Analysis/ScalarEvolution/exponential-behavior.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; CHECK: Printing analysis 'Scalar Evolution Analysis' for function 'f': diff --git a/llvm/test/Analysis/ScalarEvolution/extract-highbits-sameconstmask.ll b/llvm/test/Analysis/ScalarEvolution/extract-highbits-sameconstmask.ll index a4df455e2abb7e..b6b8777a92d0e5 100644 --- a/llvm/test/Analysis/ScalarEvolution/extract-highbits-sameconstmask.ll +++ b/llvm/test/Analysis/ScalarEvolution/extract-highbits-sameconstmask.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt -S -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; The obvious case. define i32 @div(i32 %val) nounwind { diff --git a/llvm/test/Analysis/ScalarEvolution/extract-highbits-variablemask.ll b/llvm/test/Analysis/ScalarEvolution/extract-highbits-variablemask.ll index 56d86f0309e9d4..d4ab8d8bef1f8b 100644 --- a/llvm/test/Analysis/ScalarEvolution/extract-highbits-variablemask.ll +++ b/llvm/test/Analysis/ScalarEvolution/extract-highbits-variablemask.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt -S -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; These testcases aren't *identical* but they have the same/similar meaning. diff --git a/llvm/test/Analysis/ScalarEvolution/extract-lowbits-sameconstmask.ll b/llvm/test/Analysis/ScalarEvolution/extract-lowbits-sameconstmask.ll index cb7af18a8c1fa9..079298630ea1ae 100644 --- a/llvm/test/Analysis/ScalarEvolution/extract-lowbits-sameconstmask.ll +++ b/llvm/test/Analysis/ScalarEvolution/extract-lowbits-sameconstmask.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt -S -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; The obvious case. define i32 @mul(i32 %val) nounwind { diff --git a/llvm/test/Analysis/ScalarEvolution/extract-lowbits-variablemask.ll b/llvm/test/Analysis/ScalarEvolution/extract-lowbits-variablemask.ll index cd73cf366b8a0b..88ccd1a63141b9 100644 --- a/llvm/test/Analysis/ScalarEvolution/extract-lowbits-variablemask.ll +++ b/llvm/test/Analysis/ScalarEvolution/extract-lowbits-variablemask.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt -S -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; These testcases aren't *identical* but they have the same/similar meaning. diff --git a/llvm/test/Analysis/ScalarEvolution/flags-from-poison-dbg.ll b/llvm/test/Analysis/ScalarEvolution/flags-from-poison-dbg.ll index d2f9f2b9795098..8c1a2e76315afa 100644 --- a/llvm/test/Analysis/ScalarEvolution/flags-from-poison-dbg.ll +++ b/llvm/test/Analysis/ScalarEvolution/flags-from-poison-dbg.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; Make sure poison value tracking works in the presence of @llvm.dbg ; intrinsics. Unfortunately, I was not able to reduce this file diff --git a/llvm/test/Analysis/ScalarEvolution/flags-from-poison.ll b/llvm/test/Analysis/ScalarEvolution/flags-from-poison.ll index 122d7dc5f17185..49f8af1554bdac 100644 --- a/llvm/test/Analysis/ScalarEvolution/flags-from-poison.ll +++ b/llvm/test/Analysis/ScalarEvolution/flags-from-poison.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -S -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -disable-output "-passes=print" 2>&1 | FileCheck %s ; Positive and negative tests for inferring flags like nsw from ; reasoning about how a poison value from overflow would trigger diff --git a/llvm/test/Analysis/ScalarEvolution/flattened-0.ll b/llvm/test/Analysis/ScalarEvolution/flattened-0.ll index e6614ffd6467e9..dc4cb06e4ca955 100644 --- a/llvm/test/Analysis/ScalarEvolution/flattened-0.ll +++ b/llvm/test/Analysis/ScalarEvolution/flattened-0.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s define void @foo([7 x i8]* %a) { ; CHECK-LABEL: @foo diff --git a/llvm/test/Analysis/ScalarEvolution/fold.ll b/llvm/test/Analysis/ScalarEvolution/fold.ll index 1006b9f81d6c51..d55651cef3c64a 100644 --- a/llvm/test/Analysis/ScalarEvolution/fold.ll +++ b/llvm/test/Analysis/ScalarEvolution/fold.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution -S < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution -S < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" -S < %s 2>&1 | FileCheck %s define i16 @test1(i8 %x) { %A = zext i8 %x to i12 diff --git a/llvm/test/Analysis/ScalarEvolution/how-far-to-zero.ll b/llvm/test/Analysis/ScalarEvolution/how-far-to-zero.ll index 07af88ffbebeba..7c9b25da322c80 100644 --- a/llvm/test/Analysis/ScalarEvolution/how-far-to-zero.ll +++ b/llvm/test/Analysis/ScalarEvolution/how-far-to-zero.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; PR13228 define void @f() nounwind uwtable readnone { diff --git a/llvm/test/Analysis/ScalarEvolution/huge_expression_limit.ll b/llvm/test/Analysis/ScalarEvolution/huge_expression_limit.ll index 5740915783189e..e72c3b755032bf 100644 --- a/llvm/test/Analysis/ScalarEvolution/huge_expression_limit.ll +++ b/llvm/test/Analysis/ScalarEvolution/huge_expression_limit.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-huge-expr-threshold=1 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-huge-expr-threshold=1 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-huge-expr-threshold=1 2>&1 | FileCheck %s define void @test(i32 %a, i32 %b, i32 %c, i32 %d, i32 %e, i32 %f) { ; CHECK-LABEL: 'test' diff --git a/llvm/test/Analysis/ScalarEvolution/implied-via-division.ll b/llvm/test/Analysis/ScalarEvolution/implied-via-division.ll index 43f4c04fa92758..3ff9dc276e1c8b 100644 --- a/llvm/test/Analysis/ScalarEvolution/implied-via-division.ll +++ b/llvm/test/Analysis/ScalarEvolution/implied-via-division.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s declare void @llvm.experimental.guard(i1, ...) diff --git a/llvm/test/Analysis/ScalarEvolution/incorrect-nsw.ll b/llvm/test/Analysis/ScalarEvolution/incorrect-nsw.ll index dd981c404ccde6..9b0c3a6aba66d5 100644 --- a/llvm/test/Analysis/ScalarEvolution/incorrect-nsw.ll +++ b/llvm/test/Analysis/ScalarEvolution/incorrect-nsw.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print,print" < %s 2>&1 | FileCheck %s define void @bad.nsw() { ; CHECK-LABEL: Classifying expressions for: @bad.nsw diff --git a/llvm/test/Analysis/ScalarEvolution/increasing-or-decreasing-iv.ll b/llvm/test/Analysis/ScalarEvolution/increasing-or-decreasing-iv.ll index 249698d36ed5ee..d4fda88bd0bd11 100644 --- a/llvm/test/Analysis/ScalarEvolution/increasing-or-decreasing-iv.ll +++ b/llvm/test/Analysis/ScalarEvolution/increasing-or-decreasing-iv.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define void @f0(i1 %c) { ; CHECK-LABEL: Classifying expressions for: @f0 diff --git a/llvm/test/Analysis/ScalarEvolution/infer-prestart-no-wrap.ll b/llvm/test/Analysis/ScalarEvolution/infer-prestart-no-wrap.ll index 318078ebf6ae16..8e698685ac193a 100644 --- a/llvm/test/Analysis/ScalarEvolution/infer-prestart-no-wrap.ll +++ b/llvm/test/Analysis/ScalarEvolution/infer-prestart-no-wrap.ll @@ -1,4 +1,5 @@ -; ; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; ; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; ; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define void @infer.sext.0(i1* %c, i32 %start, i32* %buf) { ; CHECK-LABEL: Classifying expressions for: @infer.sext.0 diff --git a/llvm/test/Analysis/ScalarEvolution/inner-loop-by-latch-cond-unknown.ll b/llvm/test/Analysis/ScalarEvolution/inner-loop-by-latch-cond-unknown.ll index cf75d1fb8cf01c..766d18e3d5fd60 100644 --- a/llvm/test/Analysis/ScalarEvolution/inner-loop-by-latch-cond-unknown.ll +++ b/llvm/test/Analysis/ScalarEvolution/inner-loop-by-latch-cond-unknown.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -iv-users -S | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -iv-users -S | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -S 2>&1 | FileCheck %s ; This is a regression test for the commit rL327362. diff --git a/llvm/test/Analysis/ScalarEvolution/limit-depth.ll b/llvm/test/Analysis/ScalarEvolution/limit-depth.ll index 6057270f509444..8837b305e7ac0e 100644 --- a/llvm/test/Analysis/ScalarEvolution/limit-depth.ll +++ b/llvm/test/Analysis/ScalarEvolution/limit-depth.ll @@ -1,4 +1,5 @@ -; RUN: opt -scalar-evolution-max-arith-depth=0 -scalar-evolution-max-cast-depth=0 -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -scalar-evolution-max-arith-depth=0 -scalar-evolution-max-cast-depth=0 -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -scalar-evolution-max-arith-depth=0 -scalar-evolution-max-cast-depth=0 -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; Check that depth set to 0 prevents getAddExpr and getMulExpr from making ; transformations in SCEV. We expect the result to be very straightforward. diff --git a/llvm/test/Analysis/ScalarEvolution/load-with-range-metadata.ll b/llvm/test/Analysis/ScalarEvolution/load-with-range-metadata.ll index f26c8d56754d15..68793cc15ad251 100644 --- a/llvm/test/Analysis/ScalarEvolution/load-with-range-metadata.ll +++ b/llvm/test/Analysis/ScalarEvolution/load-with-range-metadata.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define i32 @slt_trip_count_with_range(i32 *%ptr0, i32 *%ptr1) { ; CHECK-LABEL: slt_trip_count_with_range diff --git a/llvm/test/Analysis/ScalarEvolution/load.ll b/llvm/test/Analysis/ScalarEvolution/load.ll index ea79476de6b315..6d9745bd76efb0 100644 --- a/llvm/test/Analysis/ScalarEvolution/load.ll +++ b/llvm/test/Analysis/ScalarEvolution/load.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | 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:32:32-n8:16:32" target triple = "i386-pc-linux-gnu" diff --git a/llvm/test/Analysis/ScalarEvolution/lshr-shl-differentconstmask.ll b/llvm/test/Analysis/ScalarEvolution/lshr-shl-differentconstmask.ll index c7fda08fc713bd..c8285fbd4d2299 100644 --- a/llvm/test/Analysis/ScalarEvolution/lshr-shl-differentconstmask.ll +++ b/llvm/test/Analysis/ScalarEvolution/lshr-shl-differentconstmask.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt -S -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; The obvious case. define i32 @udiv_biggerLshr(i32 %val) nounwind { diff --git a/llvm/test/Analysis/ScalarEvolution/max-addops-inline.ll b/llvm/test/Analysis/ScalarEvolution/max-addops-inline.ll index 2701ed32839f2c..7c8d44c89aef5b 100644 --- a/llvm/test/Analysis/ScalarEvolution/max-addops-inline.ll +++ b/llvm/test/Analysis/ScalarEvolution/max-addops-inline.ll @@ -1,5 +1,7 @@ -; RUN: opt -analyze -scalar-evolution -scev-addops-inline-threshold=1 < %s | FileCheck --check-prefix=CHECK1 %s -; RUN: opt -analyze -scalar-evolution -scev-addops-inline-threshold=10 < %s | FileCheck --check-prefix=CHECK10 %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution -scev-addops-inline-threshold=1 < %s | FileCheck --check-prefix=CHECK1 %s +; RUN: opt -disable-output "-passes=print" -scev-addops-inline-threshold=1 < %s 2>&1 | FileCheck --check-prefix=CHECK1 %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution -scev-addops-inline-threshold=10 < %s | FileCheck --check-prefix=CHECK10 %s +; RUN: opt -disable-output "-passes=print" -scev-addops-inline-threshold=10 < %s 2>&1 | FileCheck --check-prefix=CHECK10 %s define i32 @foo(i64 %p0, i32 %p1) { ; CHECK1: %add2 = add nsw i32 %mul1, %add diff --git a/llvm/test/Analysis/ScalarEvolution/max-addrec-size.ll b/llvm/test/Analysis/ScalarEvolution/max-addrec-size.ll index aad0ddda37bcf2..c37d68d4ee7f08 100644 --- a/llvm/test/Analysis/ScalarEvolution/max-addrec-size.ll +++ b/llvm/test/Analysis/ScalarEvolution/max-addrec-size.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution -scalar-evolution-max-add-rec-size=3 < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-add-rec-size=3 < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" -scalar-evolution-max-add-rec-size=3 < %s 2>&1 | FileCheck %s ; Show that we are able to avoid creation of huge SCEVs by capping the max ; AddRec size. diff --git a/llvm/test/Analysis/ScalarEvolution/max-be-count-not-constant.ll b/llvm/test/Analysis/ScalarEvolution/max-be-count-not-constant.ll index b593fc269a7b0d..f05d4ff0f2f1d7 100644 --- a/llvm/test/Analysis/ScalarEvolution/max-be-count-not-constant.ll +++ b/llvm/test/Analysis/ScalarEvolution/max-be-count-not-constant.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | 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/Analysis/ScalarEvolution/max-expr-cache.ll b/llvm/test/Analysis/ScalarEvolution/max-expr-cache.ll index a0fa4a9d216253..8d401c3bb70fd4 100644 --- a/llvm/test/Analysis/ScalarEvolution/max-expr-cache.ll +++ b/llvm/test/Analysis/ScalarEvolution/max-expr-cache.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; SCEV would take a long time to compute SCEV expressions for this IR. If SCEV ; finishes in < 1 second then the bug is fixed. diff --git a/llvm/test/Analysis/ScalarEvolution/max-mulops-inline.ll b/llvm/test/Analysis/ScalarEvolution/max-mulops-inline.ll index c0dc6e012c1237..ec21ec3c31f061 100644 --- a/llvm/test/Analysis/ScalarEvolution/max-mulops-inline.ll +++ b/llvm/test/Analysis/ScalarEvolution/max-mulops-inline.ll @@ -1,5 +1,7 @@ -; RUN: opt -analyze -scalar-evolution -scev-mulops-inline-threshold=1 < %s | FileCheck --check-prefix=CHECK1 %s -; RUN: opt -analyze -scalar-evolution -scev-mulops-inline-threshold=10 < %s | FileCheck --check-prefix=CHECK10 %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution -scev-mulops-inline-threshold=1 < %s | FileCheck --check-prefix=CHECK1 %s +; RUN: opt -disable-output "-passes=print" -scev-mulops-inline-threshold=1 < %s 2>&1 | FileCheck --check-prefix=CHECK1 %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution -scev-mulops-inline-threshold=10 < %s | FileCheck --check-prefix=CHECK10 %s +; RUN: opt -disable-output "-passes=print" -scev-mulops-inline-threshold=10 < %s 2>&1 | FileCheck --check-prefix=CHECK10 %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/max-trip-count-address-space.ll b/llvm/test/Analysis/ScalarEvolution/max-trip-count-address-space.ll index 5260fe90e6b7d3..aaae7ace00237a 100644 --- a/llvm/test/Analysis/ScalarEvolution/max-trip-count-address-space.ll +++ b/llvm/test/Analysis/ScalarEvolution/max-trip-count-address-space.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; ScalarEvolution should be able to understand the loop and eliminate the casts. diff --git a/llvm/test/Analysis/ScalarEvolution/max-trip-count.ll b/llvm/test/Analysis/ScalarEvolution/max-trip-count.ll index e3ba313a690b83..c266d1621ac2c3 100644 --- a/llvm/test/Analysis/ScalarEvolution/max-trip-count.ll +++ b/llvm/test/Analysis/ScalarEvolution/max-trip-count.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; ScalarEvolution should be able to understand the loop and eliminate the casts. diff --git a/llvm/test/Analysis/ScalarEvolution/merge-add-rec-many-inputs.ll b/llvm/test/Analysis/ScalarEvolution/merge-add-rec-many-inputs.ll index 7a18dcda423e3d..3a3ac55699419b 100644 --- a/llvm/test/Analysis/ScalarEvolution/merge-add-rec-many-inputs.ll +++ b/llvm/test/Analysis/ScalarEvolution/merge-add-rec-many-inputs.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; Check that isImpliedViaMerge wouldn't crash when trying to prove ; SCEVUnknown and AddRec with phi having many inputs diff --git a/llvm/test/Analysis/ScalarEvolution/min-max-exprs.ll b/llvm/test/Analysis/ScalarEvolution/min-max-exprs.ll index 51f72c643cc6b1..3cc515b957ca95 100644 --- a/llvm/test/Analysis/ScalarEvolution/min-max-exprs.ll +++ b/llvm/test/Analysis/ScalarEvolution/min-max-exprs.ll @@ -1,4 +1,5 @@ -; RUN: opt -scalar-evolution -analyze < %s | FileCheck %s +; RUN: opt -scalar-evolution -analyze -enable-new-pm=0 < %s | FileCheck %s +; RUN: opt "-passes=print" -disable-output < %s 2>&1 | FileCheck %s ; ; This checks if the min and max expressions are properly recognized by ; ScalarEvolution even though they the ICmpInst and SelectInst have different diff --git a/llvm/test/Analysis/ScalarEvolution/no-wrap-add-exprs.ll b/llvm/test/Analysis/ScalarEvolution/no-wrap-add-exprs.ll index 8ce80ee14118a3..5a7bb3c9e5cd54 100644 --- a/llvm/test/Analysis/ScalarEvolution/no-wrap-add-exprs.ll +++ b/llvm/test/Analysis/ScalarEvolution/no-wrap-add-exprs.ll @@ -1,4 +1,5 @@ -; RUN: opt -S -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -disable-output "-passes=print" < %s 2>&1 | FileCheck %s !0 = !{i8 0, i8 127} diff --git a/llvm/test/Analysis/ScalarEvolution/no-wrap-unknown-becount.ll b/llvm/test/Analysis/ScalarEvolution/no-wrap-unknown-becount.ll index bc01f22b3f308f..8a7e0bc34576ba 100644 --- a/llvm/test/Analysis/ScalarEvolution/no-wrap-unknown-becount.ll +++ b/llvm/test/Analysis/ScalarEvolution/no-wrap-unknown-becount.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s declare void @llvm.experimental.guard(i1, ...) declare void @llvm.assume(i1) diff --git a/llvm/test/Analysis/ScalarEvolution/non-IV-phi.ll b/llvm/test/Analysis/ScalarEvolution/non-IV-phi.ll index f0d6c2f5d9d336..9f18719eea3c66 100644 --- a/llvm/test/Analysis/ScalarEvolution/non-IV-phi.ll +++ b/llvm/test/Analysis/ScalarEvolution/non-IV-phi.ll @@ -1,4 +1,5 @@ -; RUN: opt -scalar-evolution -analyze < %s | FileCheck %s +; RUN: opt -scalar-evolution -analyze -enable-new-pm=0 < %s | FileCheck %s +; RUN: opt "-passes=print" -disable-output < %s 2>&1 | FileCheck %s define void @test1(i8 %t, i32 %len) { ; CHECK-LABEL: test1 diff --git a/llvm/test/Analysis/ScalarEvolution/nowrap-preinc-limits.ll b/llvm/test/Analysis/ScalarEvolution/nowrap-preinc-limits.ll index fa5ab82e064c67..650eb8a6fa3edd 100644 --- a/llvm/test/Analysis/ScalarEvolution/nowrap-preinc-limits.ll +++ b/llvm/test/Analysis/ScalarEvolution/nowrap-preinc-limits.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define void @f(i1* %condition) { ; CHECK-LABEL: Classifying expressions for: @f diff --git a/llvm/test/Analysis/ScalarEvolution/nsw-offset-assume.ll b/llvm/test/Analysis/ScalarEvolution/nsw-offset-assume.ll index 3ef31ff5581bd3..b6867ca471f7a8 100644 --- a/llvm/test/Analysis/ScalarEvolution/nsw-offset-assume.ll +++ b/llvm/test/Analysis/ScalarEvolution/nsw-offset-assume.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -S -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -disable-output "-passes=print" 2>&1 | FileCheck %s ; ScalarEvolution should be able to fold away the sign-extensions ; on this loop with a primary induction variable incremented with diff --git a/llvm/test/Analysis/ScalarEvolution/nsw-offset.ll b/llvm/test/Analysis/ScalarEvolution/nsw-offset.ll index a5c4b575f1365b..0310ff341516b9 100644 --- a/llvm/test/Analysis/ScalarEvolution/nsw-offset.ll +++ b/llvm/test/Analysis/ScalarEvolution/nsw-offset.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -S -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -disable-output "-passes=print" 2>&1 | FileCheck %s ; ScalarEvolution should be able to fold away the sign-extensions ; on this loop with a primary induction variable incremented with diff --git a/llvm/test/Analysis/ScalarEvolution/nsw.ll b/llvm/test/Analysis/ScalarEvolution/nsw.ll index cb48aa9d23fc3a..39f199868eaa5e 100644 --- a/llvm/test/Analysis/ScalarEvolution/nsw.ll +++ b/llvm/test/Analysis/ScalarEvolution/nsw.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; The addrecs in this loop are analyzable only by using nsw information. diff --git a/llvm/test/Analysis/ScalarEvolution/overflow-intrinsics-trip-count.ll b/llvm/test/Analysis/ScalarEvolution/overflow-intrinsics-trip-count.ll index c58a034578e125..7d6e87eef805c3 100644 --- a/llvm/test/Analysis/ScalarEvolution/overflow-intrinsics-trip-count.ll +++ b/llvm/test/Analysis/ScalarEvolution/overflow-intrinsics-trip-count.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s declare { i16, i1 } @llvm.sadd.with.overflow.i16(i16, i16) nounwind readnone declare { i16, i1 } @llvm.uadd.with.overflow.i16(i16, i16) nounwind readnone diff --git a/llvm/test/Analysis/ScalarEvolution/overflow-intrinsics.ll b/llvm/test/Analysis/ScalarEvolution/overflow-intrinsics.ll index fb3d816c9fab42..02ed4d88c808e2 100644 --- a/llvm/test/Analysis/ScalarEvolution/overflow-intrinsics.ll +++ b/llvm/test/Analysis/ScalarEvolution/overflow-intrinsics.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | 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/Analysis/ScalarEvolution/pointer-sign-bits.ll b/llvm/test/Analysis/ScalarEvolution/pointer-sign-bits.ll index b2cec2d9fc8924..ed6b4789628776 100644 --- a/llvm/test/Analysis/ScalarEvolution/pointer-sign-bits.ll +++ b/llvm/test/Analysis/ScalarEvolution/pointer-sign-bits.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution +; RUN: opt < %s -disable-output -scalar-evolution 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" %JavaObject = type { [0 x i32 (...)*]*, i8* } diff --git a/llvm/test/Analysis/ScalarEvolution/pr22179.ll b/llvm/test/Analysis/ScalarEvolution/pr22179.ll index 21ed055dc7b2cf..8bea883cdc5b2a 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr22179.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr22179.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s %struct.anon = type { i8 } %struct.S = type { i32 } diff --git a/llvm/test/Analysis/ScalarEvolution/pr22641.ll b/llvm/test/Analysis/ScalarEvolution/pr22641.ll index 3b55afe0845453..6c824e47a4eb83 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr22641.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr22641.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define i1 @main(i16 %a) { ; CHECK-LABEL: Classifying expressions for: @main diff --git a/llvm/test/Analysis/ScalarEvolution/pr24757.ll b/llvm/test/Analysis/ScalarEvolution/pr24757.ll index 83baade34ad3aa..981661597d5768 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr24757.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr24757.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; CHECK: Loop %bb1: backedge-taken count is ((2 * %a.promoted) /u 2) diff --git a/llvm/test/Analysis/ScalarEvolution/pr25369.ll b/llvm/test/Analysis/ScalarEvolution/pr25369.ll index 10754867a36837..6378d7443e3169 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr25369.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr25369.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | 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/Analysis/ScalarEvolution/pr27315.ll b/llvm/test/Analysis/ScalarEvolution/pr27315.ll index 8f5f79df563b97..697d90a1eeef3f 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr27315.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr27315.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s declare i1 @use(i64) diff --git a/llvm/test/Analysis/ScalarEvolution/pr34538.ll b/llvm/test/Analysis/ScalarEvolution/pr34538.ll index abef58e4968225..55fd76c9882c8c 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr34538.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr34538.ll @@ -1,5 +1,7 @@ -; RUN: opt -scalar-evolution -loop-deletion -simplifycfg -analyze < %s | FileCheck %s --check-prefix=CHECK-ANALYSIS-1 -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s --check-prefix=CHECK-ANALYSIS-2 +; RUN: opt -scalar-evolution -loop-deletion -simplifycfg -analyze -enable-new-pm=0 < %s | FileCheck %s --check-prefix=CHECK-ANALYSIS-1 +; RUN: opt "-passes=print,loop(loop-deletion),simplifycfg" -disable-output < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ANALYSIS-1 +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s --check-prefix=CHECK-ANALYSIS-2 +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ANALYSIS-2 define i32 @pr34538() local_unnamed_addr #0 { ; CHECK-ANALYSIS-1: Loop %do.body: backedge-taken count is 10000 diff --git a/llvm/test/Analysis/ScalarEvolution/pr40420.ll b/llvm/test/Analysis/ScalarEvolution/pr40420.ll index 0f57958c24c6da..a1654af5cae829 100644 --- a/llvm/test/Analysis/ScalarEvolution/pr40420.ll +++ b/llvm/test/Analysis/ScalarEvolution/pr40420.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 2>&1 | FileCheck %s ; REQUIRES: asserts define void @test(i8 %tmp6) { diff --git a/llvm/test/Analysis/ScalarEvolution/predicated-trip-count.ll b/llvm/test/Analysis/ScalarEvolution/predicated-trip-count.ll index b07662ed95f5a3..3a30733dc75249 100644 --- a/llvm/test/Analysis/ScalarEvolution/predicated-trip-count.ll +++ b/llvm/test/Analysis/ScalarEvolution/predicated-trip-count.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" diff --git a/llvm/test/Analysis/ScalarEvolution/range-signedness.ll b/llvm/test/Analysis/ScalarEvolution/range-signedness.ll index d04fc9eb56baa0..bfbbe3668cb37f 100644 --- a/llvm/test/Analysis/ScalarEvolution/range-signedness.ll +++ b/llvm/test/Analysis/ScalarEvolution/range-signedness.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define void @x(i1* %cond) { ; CHECK-LABEL: Classifying expressions for: @x diff --git a/llvm/test/Analysis/ScalarEvolution/range_nw_flag.ll b/llvm/test/Analysis/ScalarEvolution/range_nw_flag.ll index 0a0b5fb5eb8c6b..b49d473eb394a2 100644 --- a/llvm/test/Analysis/ScalarEvolution/range_nw_flag.ll +++ b/llvm/test/Analysis/ScalarEvolution/range_nw_flag.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -S -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -disable-output "-passes=print" 2>&1 | FileCheck %s ; copied from flags-from-poison.ll ; CHECK-LABEL: @test-add-nuw diff --git a/llvm/test/Analysis/ScalarEvolution/returned.ll b/llvm/test/Analysis/ScalarEvolution/returned.ll index 4c07cd13466578..e0079e8810b752 100644 --- a/llvm/test/Analysis/ScalarEvolution/returned.ll +++ b/llvm/test/Analysis/ScalarEvolution/returned.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -S -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -S -disable-output "-passes=print" 2>&1 | 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" define i8* @foo(i32 %no, i8* nocapture %d) nounwind { diff --git a/llvm/test/Analysis/ScalarEvolution/scalable-vector.ll b/llvm/test/Analysis/ScalarEvolution/scalable-vector.ll index 3adb2e0b1a0684..34758e11c0a207 100644 --- a/llvm/test/Analysis/ScalarEvolution/scalable-vector.ll +++ b/llvm/test/Analysis/ScalarEvolution/scalable-vector.ll @@ -1,4 +1,5 @@ -; RUN: opt -scalar-evolution -analyze < %s | FileCheck %s +; RUN: opt -scalar-evolution -analyze -enable-new-pm=0 < %s | FileCheck %s +; RUN: opt "-passes=print" -disable-output < %s 2>&1 | FileCheck %s ; CHECK: %1 = getelementptr , * null, i32 3 ; CHECK: --> (3 * sizeof()) U: [0,-15) S: [-9223372036854775808,9223372036854775793) diff --git a/llvm/test/Analysis/ScalarEvolution/scev-dispositions.ll b/llvm/test/Analysis/ScalarEvolution/scev-dispositions.ll index 4e382a93cda952..94074111f9f7b0 100644 --- a/llvm/test/Analysis/ScalarEvolution/scev-dispositions.ll +++ b/llvm/test/Analysis/ScalarEvolution/scev-dispositions.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define void @single_loop(i32* %buf, i32 %start) { ; CHECK-LABEL: Classifying expressions for: @single_loop diff --git a/llvm/test/Analysis/ScalarEvolution/scev-prestart-nowrap.ll b/llvm/test/Analysis/ScalarEvolution/scev-prestart-nowrap.ll index 77f3482f03c066..89698b65f28a7d 100644 --- a/llvm/test/Analysis/ScalarEvolution/scev-prestart-nowrap.ll +++ b/llvm/test/Analysis/ScalarEvolution/scev-prestart-nowrap.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; An example run where SCEV(%postinc)->getStart() may overflow: ; diff --git a/llvm/test/Analysis/ScalarEvolution/sdiv.ll b/llvm/test/Analysis/ScalarEvolution/sdiv.ll index 106cda1b7f0ffb..89a3e77564ae54 100644 --- a/llvm/test/Analysis/ScalarEvolution/sdiv.ll +++ b/llvm/test/Analysis/ScalarEvolution/sdiv.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | 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/ScalarEvolution/sext-inreg.ll b/llvm/test/Analysis/ScalarEvolution/sext-inreg.ll index cc738a17bc4710..ec473ab0271453 100644 --- a/llvm/test/Analysis/ScalarEvolution/sext-inreg.ll +++ b/llvm/test/Analysis/ScalarEvolution/sext-inreg.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | 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 = "i386-apple-darwin9.6" diff --git a/llvm/test/Analysis/ScalarEvolution/sext-iv-0.ll b/llvm/test/Analysis/ScalarEvolution/sext-iv-0.ll index 5634078d2b0e49..3bbd1d238753db 100644 --- a/llvm/test/Analysis/ScalarEvolution/sext-iv-0.ll +++ b/llvm/test/Analysis/ScalarEvolution/sext-iv-0.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s ; Convert (sext {-128,+,1}) to {sext(-128),+,sext(1)}, since the ; trip count is within range where this is safe. diff --git a/llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll b/llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll index 575b744a1a40b5..a198bcb2e8fdbe 100644 --- a/llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll +++ b/llvm/test/Analysis/ScalarEvolution/sext-iv-1.ll @@ -1,5 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze \ -; RUN: | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s ; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64) ; CHECK: --> (sext i{{.}} {{{.*}},+,{{.*}}}<%bb1> to i64) diff --git a/llvm/test/Analysis/ScalarEvolution/sext-iv-2.ll b/llvm/test/Analysis/ScalarEvolution/sext-iv-2.ll index 8749ff3987faa2..b84c13938dfae3 100644 --- a/llvm/test/Analysis/ScalarEvolution/sext-iv-2.ll +++ b/llvm/test/Analysis/ScalarEvolution/sext-iv-2.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; CHECK: %tmp3 = sext i8 %tmp2 to i32 ; CHECK: --> (sext i8 {0,+,1}<%bb1> to i32){{ U: [^ ]+ S: [^ ]+}}{{ *}}Exits: -1 diff --git a/llvm/test/Analysis/ScalarEvolution/sext-mul.ll b/llvm/test/Analysis/ScalarEvolution/sext-mul.ll index 4a10749819712c..b3a8dca7902f7f 100644 --- a/llvm/test/Analysis/ScalarEvolution/sext-mul.ll +++ b/llvm/test/Analysis/ScalarEvolution/sext-mul.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; CHECK: %tmp9 = shl i64 %tmp8, 33 ; CHECK-NEXT: --> {{.*}} Exits: (-8589934592 + (8589934592 * (zext i32 %arg2 to i64))) diff --git a/llvm/test/Analysis/ScalarEvolution/sext-to-zext.ll b/llvm/test/Analysis/ScalarEvolution/sext-to-zext.ll index ca9c6de0d50d51..4cda4c7497e3bd 100644 --- a/llvm/test/Analysis/ScalarEvolution/sext-to-zext.ll +++ b/llvm/test/Analysis/ScalarEvolution/sext-to-zext.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define void @f(i1 %c) { ; CHECK-LABEL: Classifying expressions for: @f diff --git a/llvm/test/Analysis/ScalarEvolution/sext-zero.ll b/llvm/test/Analysis/ScalarEvolution/sext-zero.ll index cac42638e95928..4c6abd052df48f 100644 --- a/llvm/test/Analysis/ScalarEvolution/sext-zero.ll +++ b/llvm/test/Analysis/ScalarEvolution/sext-zero.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; CHECK: %tmp9 = shl i64 %tmp8, 33 ; CHECK-NEXT: --> {{.*}} Exits: (-8589934592 + (8589934592 * (zext i32 %arg2 to i64))) diff --git a/llvm/test/Analysis/ScalarEvolution/shift-op.ll b/llvm/test/Analysis/ScalarEvolution/shift-op.ll index ae13b2879df852..e3e63d5a9901d8 100644 --- a/llvm/test/Analysis/ScalarEvolution/shift-op.ll +++ b/llvm/test/Analysis/ScalarEvolution/shift-op.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define void @test0(i32 %init) { ; CHECK-LABEL: Classifying expressions for: @test0 diff --git a/llvm/test/Analysis/ScalarEvolution/shl-lshr-differentconstmask.ll b/llvm/test/Analysis/ScalarEvolution/shl-lshr-differentconstmask.ll index 1886848b8be933..373dd7d666e580 100644 --- a/llvm/test/Analysis/ScalarEvolution/shl-lshr-differentconstmask.ll +++ b/llvm/test/Analysis/ScalarEvolution/shl-lshr-differentconstmask.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt -S -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; The obvious case. define i32 @mul_biggerShl(i32 %val) nounwind { diff --git a/llvm/test/Analysis/ScalarEvolution/sle.ll b/llvm/test/Analysis/ScalarEvolution/sle.ll index f24c4807114fd4..3e208c280b2e87 100644 --- a/llvm/test/Analysis/ScalarEvolution/sle.ll +++ b/llvm/test/Analysis/ScalarEvolution/sle.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; ScalarEvolution should be able to use nsw information to prove that ; this loop has a finite trip count. diff --git a/llvm/test/Analysis/ScalarEvolution/smax-br-phi-idioms.ll b/llvm/test/Analysis/ScalarEvolution/smax-br-phi-idioms.ll index dc24bd1b804785..62d9c7dc1d5c2a 100644 --- a/llvm/test/Analysis/ScalarEvolution/smax-br-phi-idioms.ll +++ b/llvm/test/Analysis/ScalarEvolution/smax-br-phi-idioms.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define i32 @f0(i32 %x, i32 %y) { ; CHECK-LABEL: Classifying expressions for: @f0 diff --git a/llvm/test/Analysis/ScalarEvolution/smax.ll b/llvm/test/Analysis/ScalarEvolution/smax.ll index 122e9e47e56f40..2b2c81c8e90dfa 100644 --- a/llvm/test/Analysis/ScalarEvolution/smax.ll +++ b/llvm/test/Analysis/ScalarEvolution/smax.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; PR1614 ; CHECK: --> (%a smax %b) diff --git a/llvm/test/Analysis/ScalarEvolution/solve-quadratic-i1.ll b/llvm/test/Analysis/ScalarEvolution/solve-quadratic-i1.ll index 7ed0dadca252bc..525b8df764b9f7 100644 --- a/llvm/test/Analysis/ScalarEvolution/solve-quadratic-i1.ll +++ b/llvm/test/Analysis/ScalarEvolution/solve-quadratic-i1.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Analysis/ScalarEvolution/solve-quadratic-overflow.ll b/llvm/test/Analysis/ScalarEvolution/solve-quadratic-overflow.ll index 0f18b8df69c6f4..331bf31e9e78df 100644 --- a/llvm/test/Analysis/ScalarEvolution/solve-quadratic-overflow.ll +++ b/llvm/test/Analysis/ScalarEvolution/solve-quadratic-overflow.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution -S < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution -S < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" -S < %s 2>&1 | FileCheck %s ; The exit value from this loop was originally calculated as 0. ; The actual exit condition is 256*256 == 0 (in i16). diff --git a/llvm/test/Analysis/ScalarEvolution/solve-quadratic.ll b/llvm/test/Analysis/ScalarEvolution/solve-quadratic.ll index 5d5e02efd0e4a3..e23d0ab73c4099 100644 --- a/llvm/test/Analysis/ScalarEvolution/solve-quadratic.ll +++ b/llvm/test/Analysis/ScalarEvolution/solve-quadratic.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution -S -debug-only=scalar-evolution,apint < %s 2>&1 | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution -S -debug-only=scalar-evolution,apint < %s 2>&1 | FileCheck %s +; RUN: opt -disable-output "-passes=print" -S -debug-only=scalar-evolution,apint < %s 2>&1 2>&1 | FileCheck %s ; REQUIRES: asserts ; Use the following template to get a chrec {L,+,M,+,N}. diff --git a/llvm/test/Analysis/ScalarEvolution/srem.ll b/llvm/test/Analysis/ScalarEvolution/srem.ll index 6debab34e3b315..197437b51ca120 100644 --- a/llvm/test/Analysis/ScalarEvolution/srem.ll +++ b/llvm/test/Analysis/ScalarEvolution/srem.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | 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/ScalarEvolution/strip-injective-zext.ll b/llvm/test/Analysis/ScalarEvolution/strip-injective-zext.ll index b618b71a358de3..353e3d40418fdf 100644 --- a/llvm/test/Analysis/ScalarEvolution/strip-injective-zext.ll +++ b/llvm/test/Analysis/ScalarEvolution/strip-injective-zext.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; The initial SCEV for the backedge count is ; (zext i2 {(trunc i32 (1 + %a1) to i2),+,1}<%b2> to i32). diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count-andor.ll b/llvm/test/Analysis/ScalarEvolution/trip-count-andor.ll index 7ffc423e087595..bafb75486a8c16 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count-andor.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count-andor.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-classify-expressions=0 2>&1 2>&1 | 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/Analysis/ScalarEvolution/trip-count-pow2.ll b/llvm/test/Analysis/ScalarEvolution/trip-count-pow2.ll index 3a6f5fec2b8f7a..d4c98de296697a 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count-pow2.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count-pow2.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s define void @test1(i32 %n) { entry: diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count-switch.ll b/llvm/test/Analysis/ScalarEvolution/trip-count-switch.ll index 2d2b6b4994089d..db335dc89aca2e 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count-switch.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count-switch.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s declare void @foo() diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count-unknown-stride.ll b/llvm/test/Analysis/ScalarEvolution/trip-count-unknown-stride.ll index 60370d63e036a5..fa9c7832adbe37 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count-unknown-stride.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count-unknown-stride.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; ScalarEvolution should be able to compute trip count of the loop by proving ; that this is not an infinite loop with side effects. diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count.ll b/llvm/test/Analysis/ScalarEvolution/trip-count.ll index aef7f1b9bba527..dd6cf4eaae4fd2 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-max-iterations=0 -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-max-iterations=0 -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-max-iterations=0 -scalar-evolution-classify-expressions=0 2>&1 | 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/Analysis/ScalarEvolution/trip-count10.ll b/llvm/test/Analysis/ScalarEvolution/trip-count10.ll index 5540e3e6a2dac2..459d293af94016 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count10.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count10.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s ; Trip counts with trivial exit conditions. diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count11.ll b/llvm/test/Analysis/ScalarEvolution/trip-count11.ll index 819a89efd5079b..88728690d926f6 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count11.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count11.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s target datalayout = "e-p:64:64:64-p1:16:16:16-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count12.ll b/llvm/test/Analysis/ScalarEvolution/trip-count12.ll index d0086ee2e6accb..66577e4cc4a266 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count12.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count12.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; CHECK: Determining loop execution counts for: @test ; CHECK: Loop %for.body: backedge-taken count is ((-2 + %len) /u 2) diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count13.ll b/llvm/test/Analysis/ScalarEvolution/trip-count13.ll index 3e1009748f1cc0..42d96ca9d42f4b 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count13.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count13.ll @@ -1,4 +1,5 @@ -; RUN: opt -S -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define void @u_0(i8 %rhs) { ; E.g.: %rhs = 255, %start = 99, backedge taken 156 times diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count14.ll b/llvm/test/Analysis/ScalarEvolution/trip-count14.ll index 711939bc112e27..3f3f8163691255 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count14.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count14.ll @@ -1,4 +1,5 @@ -; RUN: opt -S -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define void @s32_max1(i32 %n, i32* %p) { entry: diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count15.ll b/llvm/test/Analysis/ScalarEvolution/trip-count15.ll index 3ad83776b1ce00..bfc88452a9cf26 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count15.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count15.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt -S -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -S -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define void @umin_unsigned_check(i64 %n) { ; CHECK-LABEL: 'umin_unsigned_check' diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count2.ll b/llvm/test/Analysis/ScalarEvolution/trip-count2.ll index 7f45527238606f..626cacd2b4db70 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count2.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count2.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s @A = weak global [1000 x i32] zeroinitializer, align 32 diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count3.ll b/llvm/test/Analysis/ScalarEvolution/trip-count3.ll index a50886be325f38..7941d4ab338224 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count3.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count3.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -scalar-evolution -analyze -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s ; ScalarEvolution can't compute a trip count because it doesn't know if ; dividing by the stride will have a remainder. This could theoretically diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count4.ll b/llvm/test/Analysis/ScalarEvolution/trip-count4.ll index 4c2d079e1922ff..24978f62df729f 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count4.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count4.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s ; ScalarEvolution should be able to compute a loop exit value for %indvar.i8. diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count5.ll b/llvm/test/Analysis/ScalarEvolution/trip-count5.ll index f3ca343da6f157..3359a1f5d96e6e 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count5.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count5.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; ScalarEvolution should be able to compute a maximum trip count ; value sufficient to fold away both sext casts. diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count6.ll b/llvm/test/Analysis/ScalarEvolution/trip-count6.ll index 103b097e09b151..925dfbb0969573 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count6.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count6.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s @mode_table = global [4 x i32] zeroinitializer ; <[4 x i32]*> [#uses=1] diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count7.ll b/llvm/test/Analysis/ScalarEvolution/trip-count7.ll index 8b92bf71c041e4..195a03ec30d614 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count7.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count7.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-classify-expressions=0 2>&1 | 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" diff --git a/llvm/test/Analysis/ScalarEvolution/trip-count8.ll b/llvm/test/Analysis/ScalarEvolution/trip-count8.ll index ac06fbf5db59c5..a70e12c8f23f63 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count8.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count8.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt < %s -analyze -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution -scalar-evolution-classify-expressions=0 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s ; PR4599 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/Analysis/ScalarEvolution/trip-count9.ll b/llvm/test/Analysis/ScalarEvolution/trip-count9.ll index d0fb51a1ee5f30..664f9b1296b362 100644 --- a/llvm/test/Analysis/ScalarEvolution/trip-count9.ll +++ b/llvm/test/Analysis/ScalarEvolution/trip-count9.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt -analyze -scalar-evolution -S -scalar-evolution-classify-expressions=0 < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution -S -scalar-evolution-classify-expressions=0 < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" -S -scalar-evolution-classify-expressions=0 < %s 2>&1 | FileCheck %s ; Every combination of ; - starting at 0, 1, or %x diff --git a/llvm/test/Analysis/ScalarEvolution/tripmultiple_calculation.ll b/llvm/test/Analysis/ScalarEvolution/tripmultiple_calculation.ll index 133532e31a5bef..f57ab3dbdad365 100644 --- a/llvm/test/Analysis/ScalarEvolution/tripmultiple_calculation.ll +++ b/llvm/test/Analysis/ScalarEvolution/tripmultiple_calculation.ll @@ -1,4 +1,5 @@ -; RUN: opt -S -analyze -scalar-evolution < %s 2>&1 | FileCheck %s +; RUN: opt -S -analyze -enable-new-pm=0 -scalar-evolution < %s 2>&1 | FileCheck %s +; RUN: opt -S -disable-output "-passes=print" < %s 2>&1 2>&1 | FileCheck %s ; umin is represented using -1 * umax in scalar evolution. -1 is considered as the ; constant of the multiply expression (-1 * ((-1 + (-1 * %a)) umax (-1 + (-1 * %b)))). diff --git a/llvm/test/Analysis/ScalarEvolution/trunc-simplify.ll b/llvm/test/Analysis/ScalarEvolution/trunc-simplify.ll index cf37371939d5e4..e4c752b02e0eb9 100644 --- a/llvm/test/Analysis/ScalarEvolution/trunc-simplify.ll +++ b/llvm/test/Analysis/ScalarEvolution/trunc-simplify.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; Check that we convert ; trunc(C * a) -> trunc(C) * trunc(a) diff --git a/llvm/test/Analysis/ScalarEvolution/truncate.ll b/llvm/test/Analysis/ScalarEvolution/truncate.ll index 7ae6908fc20975..148bbe0746c4cd 100644 --- a/llvm/test/Analysis/ScalarEvolution/truncate.ll +++ b/llvm/test/Analysis/ScalarEvolution/truncate.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution 2>&1 | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 2>&1 | FileCheck %s ; RUN: opt < %s -passes='print' -S 2>&1 | FileCheck %s ; Regression test for assert ScalarEvolution::getTruncateExpr. diff --git a/llvm/test/Analysis/ScalarEvolution/umin-umax-folds.ll b/llvm/test/Analysis/ScalarEvolution/umin-umax-folds.ll index fb8f59fe42520a..40cdb4921a42ca 100644 --- a/llvm/test/Analysis/ScalarEvolution/umin-umax-folds.ll +++ b/llvm/test/Analysis/ScalarEvolution/umin-umax-folds.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s define void @umin_sext_x_zext_x(i32 %len) { ; CHECK-LABEL: 'umin_sext_x_zext_x' diff --git a/llvm/test/Analysis/ScalarEvolution/undefined.ll b/llvm/test/Analysis/ScalarEvolution/undefined.ll index b1f44460af6bd0..693a2adf80ce1c 100644 --- a/llvm/test/Analysis/ScalarEvolution/undefined.ll +++ b/llvm/test/Analysis/ScalarEvolution/undefined.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; ScalarEvolution shouldn't attempt to interpret expressions which have ; undefined results. diff --git a/llvm/test/Analysis/ScalarEvolution/unknown_phis.ll b/llvm/test/Analysis/ScalarEvolution/unknown_phis.ll index e5335b1ae9137e..cce9c218e24bc3 100644 --- a/llvm/test/Analysis/ScalarEvolution/unknown_phis.ll +++ b/llvm/test/Analysis/ScalarEvolution/unknown_phis.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s define void @merge_values_with_ranges(i32 *%a_len_ptr, i32 *%b_len_ptr, i1 %unknown_cond) { diff --git a/llvm/test/Analysis/ScalarEvolution/unreachable-code.ll b/llvm/test/Analysis/ScalarEvolution/unreachable-code.ll index 69a7e39839a7e1..90049e43fa0f52 100644 --- a/llvm/test/Analysis/ScalarEvolution/unreachable-code.ll +++ b/llvm/test/Analysis/ScalarEvolution/unreachable-code.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; CHECK: %t = add i64 %t, 1 ; CHECK: --> undef diff --git a/llvm/test/Analysis/ScalarEvolution/unsimplified-loop.ll b/llvm/test/Analysis/ScalarEvolution/unsimplified-loop.ll index a3175077b68613..0ab46cd7d0c2b1 100644 --- a/llvm/test/Analysis/ScalarEvolution/unsimplified-loop.ll +++ b/llvm/test/Analysis/ScalarEvolution/unsimplified-loop.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; This loop has no preheader, multiple backedges, etc., but ScalarEvolution ; should still be able to analyze it. diff --git a/llvm/test/Analysis/ScalarEvolution/urem-0.ll b/llvm/test/Analysis/ScalarEvolution/urem-0.ll index a53f75b86faa86..25998fa340f7f6 100644 --- a/llvm/test/Analysis/ScalarEvolution/urem-0.ll +++ b/llvm/test/Analysis/ScalarEvolution/urem-0.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s +; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s +; RUN: opt < %s "-passes=print" -disable-output 2>&1 | FileCheck %s define i8 @foo(i8 %a) { ; CHECK-LABEL: @foo diff --git a/llvm/test/Analysis/ScalarEvolution/widenable-condition.ll b/llvm/test/Analysis/ScalarEvolution/widenable-condition.ll index b7b5f71542826d..52890936063cdb 100644 --- a/llvm/test/Analysis/ScalarEvolution/widenable-condition.ll +++ b/llvm/test/Analysis/ScalarEvolution/widenable-condition.ll @@ -1,5 +1,6 @@ ; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py -; RUN: opt -analyze -scalar-evolution < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" < %s 2>&1 | FileCheck %s ; The semanics of this example are a bit subtle. The loop is required ; execute some number of times up to 1999. The compiler is free to reduce diff --git a/llvm/test/Analysis/ScalarEvolution/zext-divrem.ll b/llvm/test/Analysis/ScalarEvolution/zext-divrem.ll index 86037437f979e1..3e5f3b0f5485ef 100644 --- a/llvm/test/Analysis/ScalarEvolution/zext-divrem.ll +++ b/llvm/test/Analysis/ScalarEvolution/zext-divrem.ll @@ -1,4 +1,5 @@ -; RUN: opt -analyze -scalar-evolution -S < %s | FileCheck %s +; RUN: opt -analyze -enable-new-pm=0 -scalar-evolution -S < %s | FileCheck %s +; RUN: opt -disable-output "-passes=print" -S < %s 2>&1 | FileCheck %s define i64 @test1(i32 %a, i32 %b) { ; CHECK-LABEL: @test1 diff --git a/llvm/test/Analysis/ScalarEvolution/zext-mul.ll b/llvm/test/Analysis/ScalarEvolution/zext-mul.ll index 0c0f16c1deaa8c..cf820f550741ff 100644 --- a/llvm/test/Analysis/ScalarEvolution/zext-mul.ll +++ b/llvm/test/Analysis/ScalarEvolution/zext-mul.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; Check that we convert ; zext((a * b)) diff --git a/llvm/test/Analysis/ScalarEvolution/zext-wrap.ll b/llvm/test/Analysis/ScalarEvolution/zext-wrap.ll index 34462208fbb317..66bedcea7edf27 100644 --- a/llvm/test/Analysis/ScalarEvolution/zext-wrap.ll +++ b/llvm/test/Analysis/ScalarEvolution/zext-wrap.ll @@ -1,4 +1,5 @@ -; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s +; RUN: opt < %s -analyze -enable-new-pm=0 -scalar-evolution | FileCheck %s +; RUN: opt < %s -disable-output "-passes=print" 2>&1 | FileCheck %s ; PR4569 define i16 @main() nounwind {