summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-05 08:46:33 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-05 08:46:33 +0000
commit409c25f78d40b4f01069c410b201414392333dbe (patch)
tree1053aa00271a63189672a0a7c73bb5d15d31ae3b /llvm/lib/CodeGen/LLVMTargetMachine.cpp
parent399660c38466826ef6c747f87b42984e333c6707 (diff)
downloadbcm5719-llvm-409c25f78d40b4f01069c410b201414392333dbe.tar.gz
bcm5719-llvm-409c25f78d40b4f01069c410b201414392333dbe.zip
Turn on machine LICM in non-fast mode.
llvm-svn: 63855
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index c9ff15d4947..7def8fa61d2 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -42,10 +42,6 @@ static cl::opt<bool> PrintGCInfo("print-gc", cl::Hidden,
static cl::opt<bool>
EnableSinking("enable-sinking", cl::init(false), cl::Hidden,
cl::desc("Perform sinking on machine code"));
-static cl::opt<bool>
-EnableLICM("machine-licm",
- cl::init(false), cl::Hidden,
- cl::desc("Perform loop-invariant code motion on machine code"));
// When this works it will be on by default.
static cl::opt<bool>
@@ -187,7 +183,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, bool Fast) {
if (PrintMachineCode)
PM.add(createMachineFunctionPrinterPass(cerr));
- if (EnableLICM)
+ if (!Fast)
PM.add(createMachineLICMPass());
if (EnableSinking)
OpenPOWER on IntegriCloud