GVN-hoist: enable by default
authorSebastian Pop <sebpop@gmail.com>
Thu, 4 Aug 2016 01:59:42 +0000 (01:59 +0000)
committerSebastian Pop <sebpop@gmail.com>
Thu, 4 Aug 2016 01:59:42 +0000 (01:59 +0000)
As we addressed all compilation time problems with GVN-hoist
https://llvm.org/bugs/show_bug.cgi?id=28670
this patch turns GVN-hoist back by default.

Differential Revision: https://reviews.llvm.org/D23136

llvm-svn: 277685

llvm/lib/Transforms/IPO/PassManagerBuilder.cpp

index 99fb422..2bf8870 100644 (file)
@@ -138,8 +138,8 @@ static cl::opt<int> PreInlineThreshold(
              "(default = 75)"));
 
 static cl::opt<bool> EnableGVNHoist(
-    "enable-gvn-hoist", cl::init(false), cl::Hidden,
-    cl::desc("Enable the experimental GVN Hoisting pass"));
+    "enable-gvn-hoist", cl::init(true), cl::Hidden,
+    cl::desc("Enable the GVN hoisting pass (default = on)"));
 
 PassManagerBuilder::PassManagerBuilder() {
     OptLevel = 2;