[llvm] 716338a - [test] Fix LoopDeletion tests under NPM

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 21 18:33:12 PDT 2020


Author: Arthur Eubanks
Date: 2020-10-21T18:32:35-07:00
New Revision: 716338a09ad93e7a9df8f2570b848ef5feeb7519

URL: https://github.com/llvm/llvm-project/commit/716338a09ad93e7a9df8f2570b848ef5feeb7519
DIFF: https://github.com/llvm/llvm-project/commit/716338a09ad93e7a9df8f2570b848ef5feeb7519.diff

LOG: [test] Fix LoopDeletion tests under NPM

Added: 
    

Modified: 
    llvm/test/Transforms/LoopDeletion/2017-07-11-incremental-dt.ll
    llvm/test/Transforms/LoopDeletion/update-scev.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/LoopDeletion/2017-07-11-incremental-dt.ll b/llvm/test/Transforms/LoopDeletion/2017-07-11-incremental-dt.ll
index ad4e434c11d9..ad8b8b4c6c48 100644
--- a/llvm/test/Transforms/LoopDeletion/2017-07-11-incremental-dt.ll
+++ b/llvm/test/Transforms/LoopDeletion/2017-07-11-incremental-dt.ll
@@ -1,6 +1,7 @@
 ; RUN: opt < %s -loop-deletion -S
-; RUN: opt < %s -loop-deletion -analyze -domtree 2>&1 | FileCheck -check-prefix=DT %s
-; RUN: opt < %s -loop-deletion -analyze -verify-dom-info
+; RUN: opt < %s -loop-deletion -analyze -domtree 2>&1 -enable-new-pm=0 | FileCheck -check-prefix=DT %s
+; RUN: opt < %s -passes='loop(loop-deletion),print<domtree>' 2>&1 | FileCheck -check-prefix=DT %s
+; RUN: opt < %s -loop-deletion -verify-dom-info
 
 ; CHECK: for.body
 ; CHECK-NOT: for.cond1

diff  --git a/llvm/test/Transforms/LoopDeletion/update-scev.ll b/llvm/test/Transforms/LoopDeletion/update-scev.ll
index 528a00a93f66..44d23aa4060d 100644
--- a/llvm/test/Transforms/LoopDeletion/update-scev.ll
+++ b/llvm/test/Transforms/LoopDeletion/update-scev.ll
@@ -1,4 +1,5 @@
-; RUN: opt -S -analyze -scalar-evolution -loop-deletion -scalar-evolution -verify-scev < %s | FileCheck %s --check-prefix=SCEV-EXPRS
+; RUN: opt -S -analyze -scalar-evolution -loop-deletion -scalar-evolution -verify-scev < %s -enable-new-pm=0 | FileCheck %s --check-prefix=SCEV-EXPRS
+; RUN: opt -S -passes='print<scalar-evolution>,loop-deletion,print<scalar-evolution>' -verify-scev < %s 2>&1 | FileCheck %s --check-prefix=SCEV-EXPRS
 ; RUN: opt -S -loop-deletion < %s | FileCheck %s --check-prefix=IR-AFTER-TRANSFORM
 ; RUN: opt -S -indvars -loop-deletion -indvars < %s | FileCheck %s --check-prefix=ORIGINAL-CRASH
 


        


More information about the llvm-commits mailing list