[llvm] 8eb338a - [test] Fix Other/new-pass-manager.ll with has different behaviors whether or not Polly is enabled
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 6 22:20:06 PST 2020
Author: Fangrui Song
Date: 2020-11-06T22:19:37-08:00
New Revision: 8eb338a92a4ea300bc3cbdd423500ca8b24f2094
URL: https://github.com/llvm/llvm-project/commit/8eb338a92a4ea300bc3cbdd423500ca8b24f2094
DIFF: https://github.com/llvm/llvm-project/commit/8eb338a92a4ea300bc3cbdd423500ca8b24f2094.diff
LOG: [test] Fix Other/new-pass-manager.ll with has different behaviors whether or not Polly is enabled
after D89158
Added:
Modified:
llvm/test/Other/new-pass-manager.ll
Removed:
################################################################################
diff --git a/llvm/test/Other/new-pass-manager.ll b/llvm/test/Other/new-pass-manager.ll
index 02dbf99f51b1..e97af3c0b67b 100644
--- a/llvm/test/Other/new-pass-manager.ll
+++ b/llvm/test/Other/new-pass-manager.ll
@@ -356,12 +356,16 @@
; CHECK-CALLGRAPH: Running analysis: CallGraphAnalysis
; CHECK-CALLGRAPH: Finished llvm::Module pass manager run
+;; If Polly is enabled, registerPollyPasses adds an ep-vectorizer-start callback.
+;; There may or may not be a function pass manager run.
+;; Add a no-op-function to unify the two cases.
; RUN: opt -disable-output -disable-verify -debug-pass-manager \
-; RUN: -passes='default<O0>' %s 2>&1 \
+; RUN: -passes='default<O0>' -passes-ep-vectorizer-start=no-op-function %s 2>&1 \
; RUN: | FileCheck %s --check-prefix=CHECK-O0
; CHECK-O0: Starting llvm::Module pass manager run
; CHECK-O0-NEXT: Running analysis: InnerAnalysisManagerProxy<{{.*}}>
; CHECK-O0-NEXT: Starting llvm::Function pass manager run
+; CHECK-O0-NEXT: Running pass: NoOpFunctionPass on foo
; CHECK-O0-NEXT: Finished llvm::Function pass manager run
; CHECK-O0-NEXT: Finished llvm::Module pass manager run
More information about the llvm-commits
mailing list