[llvm] 96458fc - Add cl::ZeroOrMore to get around build system issues
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 7 11:02:50 PDT 2020
Author: AK
Date: 2020-06-07T10:15:18-07:00
New Revision: 96458fc510d87546cdaf72457a2f61a25187fdfd
URL: https://github.com/llvm/llvm-project/commit/96458fc510d87546cdaf72457a2f61a25187fdfd
DIFF: https://github.com/llvm/llvm-project/commit/96458fc510d87546cdaf72457a2f61a25187fdfd.diff
LOG: Add cl::ZeroOrMore to get around build system issues
It is quite common to get multiple instances of optimization flags while building.
The following optimizations does not have cl::ZeroOrMore which causes errors during the build.
Reviewers: alexbdv,spop
Differential Revision: https://reviews.llvm.org/D81187
Added:
Modified:
llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp b/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
index c21f29d3fcb8..fcdefcce510a 100644
--- a/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
+++ b/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
@@ -100,8 +100,8 @@ static cl::opt<bool>
EnablePerformThinLTO("perform-thinlto", cl::init(false), cl::Hidden,
cl::desc("Enable performing ThinLTO."));
-cl::opt<bool> EnableHotColdSplit("hot-cold-split", cl::init(false), cl::Hidden,
- cl::desc("Enable hot-cold splitting pass"));
+cl::opt<bool> EnableHotColdSplit("hot-cold-split", cl::init(false),
+ cl::ZeroOrMore, cl::desc("Enable hot-cold splitting pass"));
static cl::opt<bool> UseLoopVersioningLICM(
"enable-loop-versioning-licm", cl::init(false), cl::Hidden,
@@ -117,7 +117,7 @@ static cl::opt<int> PreInlineThreshold(
"(default = 75)"));
static cl::opt<bool> EnableGVNHoist(
- "enable-gvn-hoist", cl::init(false), cl::Hidden,
+ "enable-gvn-hoist", cl::init(false), cl::ZeroOrMore,
cl::desc("Enable the GVN hoisting pass (default = off)"));
static cl::opt<bool>
@@ -131,7 +131,7 @@ static cl::opt<bool> EnableSimpleLoopUnswitch(
"cleanup passes integrated into the loop pass manager pipeline."));
static cl::opt<bool> EnableGVNSink(
- "enable-gvn-sink", cl::init(false), cl::Hidden,
+ "enable-gvn-sink", cl::init(false), cl::ZeroOrMore,
cl::desc("Enable the GVN sinking pass (default = off)"));
// This option is used in simplifying testing SampleFDO optimizations for
More information about the llvm-commits
mailing list