[PATCH] D82922: [NewPM] Add explicit init value to -enable-new-pm

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 30 16:50:43 PDT 2020


aeubanks created this revision.
aeubanks added reviewers: ychen, hans.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

So it's easier to test with it on by default.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D82922

Files:
  llvm/tools/opt/opt.cpp


Index: llvm/tools/opt/opt.cpp
===================================================================
--- llvm/tools/opt/opt.cpp
+++ llvm/tools/opt/opt.cpp
@@ -71,9 +71,8 @@
 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82922.274645.patch
Type: text/x-patch
Size: 696 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200630/1d99eca4/attachment.bin>


More information about the llvm-commits mailing list