[llvm] 4d16ebd - [Pipeline] Remove -enable-no-rerun-simplification-pipeline flag
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 16 11:30:03 PST 2023
Author: Arthur Eubanks
Date: 2023-02-16T11:29:51-08:00
New Revision: 4d16ebd6c971b656228f4dfe2d834b01756a1cdf
URL: https://github.com/llvm/llvm-project/commit/4d16ebd6c971b656228f4dfe2d834b01756a1cdf
DIFF: https://github.com/llvm/llvm-project/commit/4d16ebd6c971b656228f4dfe2d834b01756a1cdf.diff
LOG: [Pipeline] Remove -enable-no-rerun-simplification-pipeline flag
This has been on without complaint for a while.
Reviewed By: asbirlea
Differential Revision: https://reviews.llvm.org/D144130
Added:
Modified:
llvm/lib/Passes/PassBuilderPipelines.cpp
llvm/test/Other/no-rerun-function-simplification-pipeline.ll
Removed:
################################################################################
diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp
index 6cc66a0cb1320..c6288b45c89a4 100644
--- a/llvm/lib/Passes/PassBuilderPipelines.cpp
+++ b/llvm/lib/Passes/PassBuilderPipelines.cpp
@@ -173,13 +173,6 @@ static cl::opt<bool> EnableEagerlyInvalidateAnalyses(
"eagerly-invalidate-analyses", cl::init(true), cl::Hidden,
cl::desc("Eagerly invalidate more analyses in default pipelines"));
-static cl::opt<bool> EnableNoRerunSimplificationPipeline(
- "enable-no-rerun-simplification-pipeline", cl::init(true), cl::Hidden,
- cl::desc(
- "Prevent running the simplification pipeline on a function more "
- "than once in the case that SCC mutations cause a function to be "
- "visited multiple times as long as the function has not been changed"));
-
static cl::opt<bool> EnableMergeFunctions(
"enable-merge-functions", cl::init(false), cl::Hidden,
cl::desc("Enable function merging as part of the optimization pipeline"));
@@ -876,13 +869,12 @@ PassBuilder::buildInlinerPipeline(OptimizationLevel Level,
// CGSCC walk.
MainCGPipeline.addPass(createCGSCCToFunctionPassAdaptor(
buildFunctionSimplificationPipeline(Level, Phase),
- PTO.EagerlyInvalidateAnalyses, EnableNoRerunSimplificationPipeline));
+ PTO.EagerlyInvalidateAnalyses, /*NoRerun=*/true));
MainCGPipeline.addPass(CoroSplitPass(Level != OptimizationLevel::O0));
- if (EnableNoRerunSimplificationPipeline)
- MIWP.addLateModulePass(createModuleToFunctionPassAdaptor(
- InvalidateAnalysisPass<ShouldNotRunFunctionPassesAnalysis>()));
+ MIWP.addLateModulePass(createModuleToFunctionPassAdaptor(
+ InvalidateAnalysisPass<ShouldNotRunFunctionPassesAnalysis>()));
return MIWP;
}
diff --git a/llvm/test/Other/no-rerun-function-simplification-pipeline.ll b/llvm/test/Other/no-rerun-function-simplification-pipeline.ll
index 0fa003b8ceadf..ff797d06ad830 100644
--- a/llvm/test/Other/no-rerun-function-simplification-pipeline.ll
+++ b/llvm/test/Other/no-rerun-function-simplification-pipeline.ll
@@ -1,7 +1,5 @@
-; RUN: opt < %s -passes='default<O1>' -disable-output -debug-pass-manager=verbose -enable-no-rerun-simplification-pipeline=0 2>&1 | FileCheck %s --check-prefixes=CHECK,RERUNSP
-; RUN: opt < %s -passes='default<O2>' -disable-output -debug-pass-manager=verbose -enable-no-rerun-simplification-pipeline=0 2>&1 | FileCheck %s --check-prefixes=CHECK,RERUNSP
-; RUN: opt < %s -passes='default<O1>' -disable-output -debug-pass-manager=verbose -enable-no-rerun-simplification-pipeline=1 2>&1 | FileCheck %s --check-prefixes=CHECK,NORERUN
-; RUN: opt < %s -passes='default<O2>' -disable-output -debug-pass-manager=verbose -enable-no-rerun-simplification-pipeline=1 2>&1 | FileCheck %s --check-prefixes=CHECK,NORERUN
+; RUN: opt < %s -passes='default<O1>' -disable-output -debug-pass-manager=verbose 2>&1 | FileCheck %s
+; RUN: opt < %s -passes='default<O2>' -disable-output -debug-pass-manager=verbose 2>&1 | FileCheck %s
; BDCE only runs once in the function simplification pipeline and nowhere else so we use that to check for reruns.
@@ -11,8 +9,7 @@
; CHECK: Running pass: BDCEPass on f2
; CHECK-NOT: BDCEPass
; CHECK: PassManager{{.*}}SCC{{.*}} on (f2)
-; RERUNSP: Running pass: BDCEPass on f2
-; NORERUN-NOT: Running pass: BDCEPass on f2
+; CHECK-NOT: Running pass: BDCEPass on f2
; CHECK: PassManager{{.*}}SCC{{.*}} on (f3)
; CHECK: Running pass: BDCEPass on f3
More information about the llvm-commits
mailing list