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
This commit is contained in:
Bill Wendling
2010-08-09 23:59:04 +00:00
parent 02ecdefbe4
commit 6cdb1abe4e
4 changed files with 125 additions and 170 deletions

View File

@@ -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());