summaryrefslogtreecommitdiff
path: root/lib/CodeGen/Passes.cpp
diff options
context:
space:
mode:
authorJuergen Ributzka <juergen@apple.com>2014-01-24 18:40:30 +0000
committerJuergen Ributzka <juergen@apple.com>2014-01-24 18:40:30 +0000
commitdc6f9b9a4fcf2b280ee2b30542d223dd6ddbf900 (patch)
treeed17530421ddaddebbe7c91881f45611c757e2b9 /lib/CodeGen/Passes.cpp
parent08aa5bf1d544774d4689521b525a34a0807278ee (diff)
downloadllvm-dc6f9b9a4fcf2b280ee2b30542d223dd6ddbf900.tar.gz
llvm-dc6f9b9a4fcf2b280ee2b30542d223dd6ddbf900.tar.bz2
llvm-dc6f9b9a4fcf2b280ee2b30542d223dd6ddbf900.tar.xz
Revert "Add Constant Hoisting Pass"
This reverts commit r200022 to unbreak the build bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200024 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Passes.cpp')
-rw-r--r--lib/CodeGen/Passes.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/CodeGen/Passes.cpp b/lib/CodeGen/Passes.cpp
index 7a7c42bfcc..0e8e50eca7 100644
--- a/lib/CodeGen/Passes.cpp
+++ b/lib/CodeGen/Passes.cpp
@@ -70,8 +70,6 @@ static cl::opt<bool> DisableMachineSink("disable-machine-sink", cl::Hidden,
cl::desc("Disable Machine Sinking"));
static cl::opt<bool> DisableLSR("disable-lsr", cl::Hidden,
cl::desc("Disable Loop Strength Reduction Pass"));
-static cl::opt<bool> DisableConstantHoisting("disable-constant-hoisting",
- cl::Hidden, cl::desc("Disable ConstantHoisting"));
static cl::opt<bool> DisableCGP("disable-cgp", cl::Hidden,
cl::desc("Disable Codegen Prepare"));
static cl::opt<bool> DisableCopyProp("disable-copyprop", cl::Hidden,
@@ -398,10 +396,6 @@ void TargetPassConfig::addIRPasses() {
// Make sure that no unreachable blocks are instruction selected.
addPass(createUnreachableBlockEliminationPass());
-
- // Prepare expensive constants for SelectionDAG.
- if (getOptLevel() != CodeGenOpt::None && !DisableConstantHoisting)
- addPass(createConstantHoistingPass());
}
/// Turn exception handling constructs into something the code generators can