GVN-hoist: enable by default
authorSebastian Pop <sebpop@gmail.com>
Mon, 8 Aug 2016 14:46:15 +0000 (14:46 +0000)
committerSebastian Pop <sebpop@gmail.com>
Mon, 8 Aug 2016 14:46:15 +0000 (14:46 +0000)
llvm-svn: 278010

llvm/lib/Transforms/IPO/PassManagerBuilder.cpp
llvm/test/Feature/optnone-opt.ll

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;
index f53877d..a00013e 100644 (file)
@@ -41,6 +41,7 @@ attributes #0 = { optnone noinline }
 ; OPT-O1-DAG: Skipping pass 'Combine redundant instructions'
 ; OPT-O1-DAG: Skipping pass 'Dead Store Elimination'
 ; OPT-O1-DAG: Skipping pass 'Early CSE'
+; OPT-O1-DAG: Skipping pass 'Early GVN Hoisting of Expressions'
 ; OPT-O1-DAG: Skipping pass 'Jump Threading'
 ; OPT-O1-DAG: Skipping pass 'MemCpy Optimization'
 ; OPT-O1-DAG: Skipping pass 'Reassociate expressions'