[llvm-branch-commits] [llvm] c37dd3b - [NewPM][opt] Make -enable-new-pm default to LLVM_ENABLE_NEW_PASS_MANAGER
Arthur Eubanks via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sat Jan 23 12:52:40 PST 2021
Author: Arthur Eubanks
Date: 2021-01-23T12:36:09-08:00
New Revision: c37dd3b6d553d7ae3afaf677f1c6abdf6b1ec74e
URL: https://github.com/llvm/llvm-project/commit/c37dd3b6d553d7ae3afaf677f1c6abdf6b1ec74e
DIFF: https://github.com/llvm/llvm-project/commit/c37dd3b6d553d7ae3afaf677f1c6abdf6b1ec74e.diff
LOG: [NewPM][opt] Make -enable-new-pm default to LLVM_ENABLE_NEW_PASS_MANAGER
This is controlled by the ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER CMake flag.
https://lists.llvm.org/pipermail/llvm-dev/2021-January/147993.html
Reviewed By: ychen, asbirlea
Differential Revision: https://reviews.llvm.org/D95254
Added:
Modified:
llvm/tools/opt/opt.cpp
Removed:
################################################################################
diff --git a/llvm/tools/opt/opt.cpp b/llvm/tools/opt/opt.cpp
index 92df0bc19a30..5cb59f85ccf8 100644
--- a/llvm/tools/opt/opt.cpp
+++ b/llvm/tools/opt/opt.cpp
@@ -70,8 +70,10 @@ 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"), cl::init(false));
+static cl::opt<bool>
+ EnableNewPassManager("enable-new-pm",
+ cl::desc("Enable the new pass manager"),
+ cl::init(LLVM_ENABLE_NEW_PASS_MANAGER));
// 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-branch-commits
mailing list