Move indvars pass after mem2reg pass where it is more likely to be useful

llvm-svn: 6441
This commit is contained in:
Chris Lattner 2003-05-30 19:23:10 +00:00
parent 0078d9c5bb
commit 49fac80010
1 changed files with 1 additions and 1 deletions

View File

@ -71,10 +71,10 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
addPass(PM, createDeadInstEliminationPass()); // Remove Dead code/vars
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
addPass(PM, createInstructionCombiningPass()); // Cleanup code for raise
addPass(PM, createIndVarSimplifyPass()); // Simplify indvars
addPass(PM, createRaisePointerReferencesPass());// Recover type information
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
addPass(PM, createPromoteMemoryToRegister()); // Promote alloca's to regs
addPass(PM, createIndVarSimplifyPass()); // Simplify indvars
addPass(PM, createReassociatePass()); // Reassociate expressions
//addPass(PM, createCorrelatedExpressionEliminationPass());// Kill corr branches
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's