[test][NewPM] Clean up ScalarEvolution tests to work under NPM
authorArthur Eubanks <aeubanks@google.com>
Wed, 23 Sep 2020 02:30:03 +0000 (19:30 -0700)
committerArthur Eubanks <aeubanks@google.com>
Wed, 23 Sep 2020 02:31:10 +0000 (19:31 -0700)
llvm/test/Analysis/ScalarEvolution/max-backedge-taken-count-guard-info.ll
llvm/test/Analysis/ScalarEvolution/trivial-phis.ll

index cb79233..efa0de2 100644 (file)
@@ -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.
 
index 3a897e9..62e33bc 100644 (file)
@@ -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 ]