[llvm] ffc157e - [Passes] Use regex to match GlobalsAA line in test.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu May 13 05:23:33 PDT 2021


Author: Florian Hahn
Date: 2021-05-13T13:22:18+01:00
New Revision: ffc157ea825f75c7b143fdaf23283194c5d829cf

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

LOG: [Passes] Use regex to match GlobalsAA line in test.

On some platforms/compiler combinations, it appears the output is
slightly different. Update the test to use a regex, as is done at other
places in the new-pm-*default.ll tests to address buildbot failures.

Added: 
    

Modified: 
    llvm/test/Other/new-pm-lto-defaults.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Other/new-pm-lto-defaults.ll b/llvm/test/Other/new-pm-lto-defaults.ll
index 6155561fbaab6..f16faad40ee6f 100644
--- a/llvm/test/Other/new-pm-lto-defaults.ll
+++ b/llvm/test/Other/new-pm-lto-defaults.ll
@@ -79,7 +79,7 @@
 ; CHECK-O23SZ-NEXT: Running pass: SROA on foo
 ; CHECK-O23SZ-NEXT: Running pass: TailCallElimPass on foo
 ; CHECK-O23SZ-NEXT: Running pass: PostOrderFunctionAttrsPass on (foo)
-; CHECK-O23SZ-NEXT: Running pass: RequireAnalysisPass<llvm::GlobalsAA, llvm::Module> on [module]
+; CHECK-O23SZ-NEXT: Running pass: RequireAnalysisPass<{{.*}}GlobalsAA
 ; CHECK-O23SZ-NEXT: Running analysis: GlobalsAA on [module]
 ; CHECK-O23SZ-NEXT: Running pass: InvalidateAnalysisPass<llvm::AAManager> on foo
 ; CHECK-O23SZ-NEXT: Invalidating analysis: AAManager on foo


        


More information about the llvm-commits mailing list