[llvm] 2d0de5f - [test][NewPM] Clean up ScalarEvolution tests to work under NPM

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 19:31:22 PDT 2020


Author: Arthur Eubanks
Date: 2020-09-22T19:31:10-07:00
New Revision: 2d0de5f9a4c58e2fcdd8f00dabca505ba47abbd0

URL: https://github.com/llvm/llvm-project/commit/2d0de5f9a4c58e2fcdd8f00dabca505ba47abbd0
DIFF: https://github.com/llvm/llvm-project/commit/2d0de5f9a4c58e2fcdd8f00dabca505ba47abbd0.diff

LOG: [test][NewPM] Clean up ScalarEvolution tests to work under NPM

Added: 
    

Modified: 
    llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll
    llvm/test/Analysis/ScalarEvolution/trivial-phis.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll b/llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll
index cb792335f181..efa0de2193a0 100644
--- a/llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll
+++ b/llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll
@@ -1,4 +1,5 @@
-; RUN: opt -analyze -scalar-evolution %s | FileCheck %s
+; RUN: opt -analyze -scalar-evolution %s -enable-new-pm=0 | FileCheck %s
+; RUN: opt -passes='print<scalar-evolution>' -disable-output %s 2>&1 | FileCheck %s
 
 ; Test case for PR40961. The loop guard limit the max backedge-taken count.
 

diff  --git a/llvm/test/Analysis/ScalarEvolution/trivial-phis.ll b/llvm/test/Analysis/ScalarEvolution/trivial-phis.ll
index 3a897e957d1b..62e33bca0339 100644
--- a/llvm/test/Analysis/ScalarEvolution/trivial-phis.ll
+++ b/llvm/test/Analysis/ScalarEvolution/trivial-phis.ll
@@ -1,4 +1,5 @@
-; RUN: opt < %s -analyze -scalar-evolution | FileCheck %s
+; RUN: opt -analyze -scalar-evolution %s -enable-new-pm=0 | FileCheck %s
+; RUN: opt -passes='print<scalar-evolution>' -disable-output %s 2>&1 | FileCheck %s
 
 ; CHECK-LABEL @test1
 ; CHECK       %add.lcssa.wide = phi i64 [ %indvars.iv.next, %do.body ]


        


More information about the llvm-commits mailing list