diff options
author | Dan Gohman <gohman@apple.com> | 2009-10-31 14:35:41 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-10-31 14:35:41 +0000 |
commit | fb7f0e57b6e8c193a6e4c4d188571fd4df7190a8 (patch) | |
tree | c21669e11b5511a7f58eea1486538c97a616ad7d /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | ac45c9171d164af8737f56bbde3370318401d1a3 (diff) | |
download | bcm5719-llvm-fb7f0e57b6e8c193a6e4c4d188571fd4df7190a8.tar.gz bcm5719-llvm-fb7f0e57b6e8c193a6e4c4d188571fd4df7190a8.zip |
Remove CodeGenLICM. It's largely obsoleted by MachineLICM's new ability
to unfold loop-invariant loads.
llvm-svn: 85657
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index e58a9ca82c6..1234cb7fd9a 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -39,8 +39,6 @@ static cl::opt<bool> PrintEmittedAsm("print-emitted-asm", cl::Hidden, cl::desc("Dump emitter generated instructions as assembly")); static cl::opt<bool> PrintGCInfo("print-gc", cl::Hidden, cl::desc("Dump garbage collector data")); -static cl::opt<bool> HoistConstants("hoist-constants", cl::Hidden, - cl::desc("Hoist constants out of loops")); static cl::opt<bool> VerifyMachineCode("verify-machineinstrs", cl::Hidden, cl::desc("Verify generated machine code"), cl::init(getenv("LLVM_VERIFY_MACHINEINSTRS")!=NULL)); @@ -255,11 +253,8 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM, // Make sure that no unreachable blocks are instruction selected. PM.add(createUnreachableBlockEliminationPass()); - if (OptLevel != CodeGenOpt::None) { - if (HoistConstants) - PM.add(createCodeGenLICMPass()); + if (OptLevel != CodeGenOpt::None) PM.add(createCodeGenPreparePass(getTargetLowering())); - } PM.add(createStackProtectorPass(getTargetLowering())); |