[llvm] 3b38062 - [NewPM] Fix 2003-02-19-LoopInfoNestingBug.ll under NPM

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 15 20:23:11 PDT 2020


Author: Arthur Eubanks
Date: 2020-09-15T20:21:45-07:00
New Revision: 3b38062d1c8b6965ded5b6bc686db63f1a59e818

URL: https://github.com/llvm/llvm-project/commit/3b38062d1c8b6965ded5b6bc686db63f1a59e818
DIFF: https://github.com/llvm/llvm-project/commit/3b38062d1c8b6965ded5b6bc686db63f1a59e818.diff

LOG: [NewPM] Fix 2003-02-19-LoopInfoNestingBug.ll under NPM

Also move it to a more appropriate directory.

Added: 
    llvm/test/Analysis/LoopInfo/2003-02-19-LoopInfoNestingBug.ll

Modified: 
    

Removed: 
    llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll


################################################################################
diff  --git a/llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll b/llvm/test/Analysis/LoopInfo/2003-02-19-LoopInfoNestingBug.ll
similarity index 76%
rename from llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll
rename to llvm/test/Analysis/LoopInfo/2003-02-19-LoopInfoNestingBug.ll
index b807c4440008..caa27b3c58ff 100644
--- a/llvm/test/Other/2003-02-19-LoopInfoNestingBug.ll
+++ b/llvm/test/Analysis/LoopInfo/2003-02-19-LoopInfoNestingBug.ll
@@ -2,9 +2,10 @@
 ; figure out that loop "Inner" should be nested inside of leep "LoopHeader", 
 ; and instead nests it just inside loop "Top"
 ;
-; RUN: opt < %s -analyze -loops | \
-; RUN:   grep "     Loop at depth 3 containing: %Inner<header><latch><exiting>"
-;
+; RUN: opt < %s -analyze -loops -enable-new-pm=0 | FileCheck %s
+; RUN: opt < %s -passes='print<loops>' -disable-output 2>&1 | FileCheck %s
+
+; CHECK:  Loop at depth 3 containing: %Inner<header><latch><exiting>
 define void @test() {
         br label %Top
 


        


More information about the llvm-commits mailing list