[llvm] 9a5e3a4 - [NewPM] Add explicit init value to -enable-new-pm
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 18:40:10 PDT 2020
Author: Arthur Eubanks
Date: 2020-06-30T18:40:01-07:00
New Revision: 9a5e3a43923229af2c3d8c6828ef68cb2584c941
URL: https://github.com/llvm/llvm-project/commit/9a5e3a43923229af2c3d8c6828ef68cb2584c941
DIFF: https://github.com/llvm/llvm-project/commit/9a5e3a43923229af2c3d8c6828ef68cb2584c941.diff
LOG: [NewPM] Add explicit init value to -enable-new-pm
So it's easier to test with it on by default.
Reviewed By: ychen
Differential Revision: https://reviews.llvm.org/D82922
Added:
Modified:
llvm/tools/opt/opt.cpp
Removed:
################################################################################
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 96c835e1aff0..d31b985dbdde 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -71,9 +71,8 @@ static codegen::RegisterCodeGenFlags CFG;
static cl::list<const PassInfo*, bool, PassNameParser>
PassList(cl::desc("Optimizations available:"));
-static cl::opt<bool>
- EnableNewPassManager("enable-new-pm",
- cl::desc("Enable the new pass manager"));
+static cl::opt<bool> EnableNewPassManager(
+ "enable-new-pm", cl::desc("Enable the new pass manager"), cl::init(false));
// This flag specifies a textual description of the optimization pass pipeline
// to run over the module. This flag switches opt to use the new pass manager
More information about the llvm-commits
mailing list