diff options
author | Geoff Berry <gberry@codeaurora.org> | 2017-04-11 14:36:30 +0000 |
---|---|---|
committer | Geoff Berry <gberry@codeaurora.org> | 2017-04-11 14:36:30 +0000 |
commit | 9d597adde41a332bee9061213f64c930b3a4349a (patch) | |
tree | 207afceca2e2d4a575cfc90041b09a78b4a0b772 | |
parent | 7124b5f6f98c0fabaa0d7654845569ceab78d3b4 (diff) | |
download | bcm5719-llvm-9d597adde41a332bee9061213f64c930b3a4349a.tar.gz bcm5719-llvm-9d597adde41a332bee9061213f64c930b3a4349a.zip |
[GVNHoist] Re-enable GVNHoist by default
Turn GVNHoist back on by default now that PR32153 has been fixed.
llvm-svn: 299944
-rw-r--r-- | llvm/lib/Transforms/IPO/PassManagerBuilder.cpp | 6 | ||||
-rw-r--r-- | llvm/test/Feature/optnone-opt.ll | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp b/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp index 6e1edbb21c7..6cc6d3b63f4 100644 --- a/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp +++ b/llvm/lib/Transforms/IPO/PassManagerBuilder.cpp @@ -137,8 +137,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 GVN hoisting pass")); + "enable-gvn-hoist", cl::init(true), cl::Hidden, + cl::desc("Enable the GVN hoisting pass (default = on)")); static cl::opt<bool> DisableLibCallsShrinkWrap("disable-libcalls-shrinkwrap", cl::init(false), @@ -245,7 +245,7 @@ void PassManagerBuilder::populateFunctionPassManager( FPM.add(createCFGSimplificationPass()); FPM.add(createSROAPass()); FPM.add(createEarlyCSEPass()); - if(EnableGVNHoist) + if (EnableGVNHoist) FPM.add(createGVNHoistPass()); FPM.add(createLowerExpectIntrinsicPass()); } diff --git a/llvm/test/Feature/optnone-opt.ll b/llvm/test/Feature/optnone-opt.ll index f53877d4aea..a00013ec179 100644 --- a/llvm/test/Feature/optnone-opt.ll +++ b/llvm/test/Feature/optnone-opt.ll @@ -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' |