summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Passes
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-04-19 22:18:53 +0000
committerEric Christopher <echristo@gmail.com>2019-04-19 22:18:53 +0000
commitdfebd84eb32b0e506523c8bc1708c03447bdd574 (patch)
tree16055b588a16e01e8c3977f8bff11837b88a9c0d /llvm/lib/Passes
parent1810339bc30555cc8b957d4b6915d60dfd32432c (diff)
downloadbcm5719-llvm-dfebd84eb32b0e506523c8bc1708c03447bdd574.tar.gz
bcm5719-llvm-dfebd84eb32b0e506523c8bc1708c03447bdd574.zip
Remove the EnableEarlyCSEMemSSA set of options from the legacy
and new pass managers. They were default to true and not being used. Differential Revision: https://reviews.llvm.org/D60747 llvm-svn: 358789
Diffstat (limited to 'llvm/lib/Passes')
-rw-r--r--llvm/lib/Passes/PassBuilder.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Passes/PassBuilder.cpp b/llvm/lib/Passes/PassBuilder.cpp
index 25c5a422e5a..d1762864afc 100644
--- a/llvm/lib/Passes/PassBuilder.cpp
+++ b/llvm/lib/Passes/PassBuilder.cpp
@@ -185,10 +185,6 @@ static cl::opt<bool>
cl::Hidden, cl::ZeroOrMore,
cl::desc("Run NewGVN instead of GVN"));
-static cl::opt<bool> EnableEarlyCSEMemSSA(
- "enable-npm-earlycse-memssa", cl::init(true), cl::Hidden,
- cl::desc("Enable the EarlyCSE w/ MemorySSA pass for the new PM (default = on)"));
-
static cl::opt<bool> EnableGVNHoist(
"enable-npm-gvn-hoist", cl::init(false), cl::Hidden,
cl::desc("Enable the GVN hoisting pass for the new PM (default = off)"));
@@ -387,7 +383,7 @@ PassBuilder::buildFunctionSimplificationPipeline(OptimizationLevel Level,
FPM.addPass(SROA());
// Catch trivial redundancies
- FPM.addPass(EarlyCSEPass(EnableEarlyCSEMemSSA));
+ FPM.addPass(EarlyCSEPass(true /* Enable mem-ssa. */));
// Hoisting of scalars and load expressions.
if (EnableGVNHoist)
OpenPOWER on IntegriCloud