aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/LLVMTargetMachine.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-08-09 23:59:04 +0000
committerBill Wendling <isanbard@gmail.com>2010-08-09 23:59:04 +0000
commitcf5c6bcbc173148f9e53bd818c443ef7c391e417 (patch)
tree79e169ef86eb551c0d2521a690ae01a689d81c0d /lib/CodeGen/LLVMTargetMachine.cpp
parent03049c4f641cb15ac64361fb2b00de8864f09bce (diff)
downloadexternal_llvm-cf5c6bcbc173148f9e53bd818c443ef7c391e417.zip
external_llvm-cf5c6bcbc173148f9e53bd818c443ef7c391e417.tar.gz
external_llvm-cf5c6bcbc173148f9e53bd818c443ef7c391e417.tar.bz2
Merge the OptimizeExts and OptimizeCmps passes into one PeepholeOptimizer
pass. This pass should expand with all of the small, fine-grained optimization passes to reduce compile time and increase happiment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110627 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r--lib/CodeGen/LLVMTargetMachine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/LLVMTargetMachine.cpp b/lib/CodeGen/LLVMTargetMachine.cpp
index 5b2d40b..f5112f7 100644
--- a/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/lib/CodeGen/LLVMTargetMachine.cpp
@@ -353,8 +353,7 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
PM.add(createDeadMachineInstructionElimPass());
printAndVerify(PM, "After codegen DCE pass");
- PM.add(createOptimizeExtsPass());
- PM.add(createOptimizeCmpsPass());
+ PM.add(createPeepholeOptimizerPass());
if (!DisableMachineLICM)
PM.add(createMachineLICMPass());
PM.add(createMachineCSEPass());