forked from OSchip/llvm-project
Move indvars pass after mem2reg pass where it is more likely to be useful
llvm-svn: 6441
This commit is contained in:
parent
0078d9c5bb
commit
49fac80010
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue