summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-07 01:57:46 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-07 01:57:46 +0000
commit95716216656fe818965a0d70905e4812c58af534 (patch)
tree982309ac027bca83b559d2711cff38e98a7ae5e4 /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parent0b41d6c43d28f6da5c00b8a433a0a85ec64a0c10 (diff)
downloadbcm5719-llvm-95716216656fe818965a0d70905e4812c58af534.tar.gz
bcm5719-llvm-95716216656fe818965a0d70905e4812c58af534.zip
Enable machine sinking pass in non-fast mode.
llvm-svn: 63999
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 7def8fa61d2..f29944c7c90 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -38,11 +38,6 @@ static cl::opt<bool> PrintEmittedAsm("print-emitted-asm", cl::Hidden,
static cl::opt<bool> PrintGCInfo("print-gc", cl::Hidden,
cl::desc("Dump garbage collector data"));
-// Hidden options to help debugging
-static cl::opt<bool>
-EnableSinking("enable-sinking", cl::init(false), cl::Hidden,
- cl::desc("Perform sinking on machine code"));
-
// When this works it will be on by default.
static cl::opt<bool>
DisablePostRAScheduler("disable-post-RA-scheduler",
@@ -183,11 +178,10 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) {
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(cerr));
- if (!Fast)
+ if (!Fast) {
PM.add(createMachineLICMPass());
-
- if (EnableSinking)
PM.add(createMachineSinkingPass());
+ }
// Run pre-ra passes.
if (addPreRegAlloc(PM, Fast) && PrintMachineCode)
OpenPOWER on IntegriCloud