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
commit6cdb1abe4e4f6364649e7ef656589441754e82ae (patch)
tree79e169ef86eb551c0d2521a690ae01a689d81c0d /lib/CodeGen/LLVMTargetMachine.cpp
parent02ecdefbe48a054d962d6977967d1ae57a31a074 (diff)
downloadexternal_llvm-6cdb1abe4e4f6364649e7ef656589441754e82ae.tar.gz
external_llvm-6cdb1abe4e4f6364649e7ef656589441754e82ae.tar.bz2
external_llvm-6cdb1abe4e4f6364649e7ef656589441754e82ae.zip
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 5b2d40b585..f5112f7f62 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());