Skip to content

Commit 9a5e3a4

Browse files
committed
[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
1 parent a22091b commit 9a5e3a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/tools/opt/opt.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ static codegen::RegisterCodeGenFlags CFG;
7171
static cl::list<const PassInfo*, bool, PassNameParser>
7272
PassList(cl::desc("Optimizations available:"));
7373

74-
static cl::opt<bool>
75-
EnableNewPassManager("enable-new-pm",
76-
cl::desc("Enable the new pass manager"));
74+
static cl::opt<bool> EnableNewPassManager(
75+
"enable-new-pm", cl::desc("Enable the new pass manager"), cl::init(false));
7776

7877
// This flag specifies a textual description of the optimization pass pipeline
7978
// to run over the module. This flag switches opt to use the new pass manager

0 commit comments

Comments
 (0)