[llvm] 2c7afad - [PassManager] Adjust check lines to account for different printing.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 9 05:21:30 PST 2022


Author: Florian Hahn
Date: 2022-03-09T13:20:59Z
New Revision: 2c7afadb4789be8e6f5d4b16b46697cc62048928

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

LOG: [PassManager] Adjust check lines to account for different printing.

Relax some checks to account for types being printed differently on
different platforms, surfaced by different buildbots.

Added: 
    

Modified: 
    llvm/test/Other/crash-function.ll
    llvm/test/Other/crash-loop.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Other/crash-function.ll b/llvm/test/Other/crash-function.ll
index e61b20658683f..ab28415c64c07 100644
--- a/llvm/test/Other/crash-function.ll
+++ b/llvm/test/Other/crash-function.ll
@@ -6,7 +6,7 @@
 ; CHECK:      Stack dump:
 ; CHECK-NEXT: 0.  Program arguments:
 ; CHECK-NEXT: 1.  Running pass 'ModuleToFunctionPassAdaptor' on module
-; CHECK-NEXT: 2.  Running pass 'PassManager<llvm::Function>' on function '@foo'
+; CHECK-NEXT: 2.  Running pass 'PassManager<llvm::Function{{.*}}>' on function '@foo'
 ; CHECK-NEXT: 3.  Running pass 'CrashingFunctionPass' on function '@foo'
 
 define void @foo() {

diff  --git a/llvm/test/Other/crash-loop.ll b/llvm/test/Other/crash-loop.ll
index 6d9067cb7fb70..36d83b9c41d3e 100644
--- a/llvm/test/Other/crash-loop.ll
+++ b/llvm/test/Other/crash-loop.ll
@@ -8,7 +8,7 @@
 ; CHECK-NEXT: 1.  Running pass 'ModuleToFunctionPassAdaptor' on module
 ; CHECK-NEXT: 2.  Running pass 'PassManager<llvm::Function>' on function '@foo'
 ; CHECK-NEXT: 3.  Running pass 'FunctionToLoopPassAdaptor' on function '@foo'
-; CHECK-NEXT: 4.  Running pass 'PassManager<llvm::Loop, llvm::LoopAnalysisManager, llvm::LoopStandardAnalysisResults &, llvm::LPMUpdater &>' on loop 'loop.header'.
+; CHECK-NEXT: 4.  Running pass 'PassManager<llvm::Loop,{{.+}}>' on loop 'loop.header'.
 ; CHECK-NEXT: 5.  Running pass 'CrashingLoopPass' on loop 'loop.header'.
 
 define void @foo() {


        


More information about the llvm-commits mailing list