Move indvars pass after mem2reg pass where it is more likely to be useful
authorChris Lattner <sabre@nondot.org>
Fri, 30 May 2003 19:23:10 +0000 (19:23 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 30 May 2003 19:23:10 +0000 (19:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6441 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccas/gccas.cpp

index 1cefa371b6ce6c1dba779986be23b09b2533844c..9d9ab6ac673362852d4d45452ff910df17759218 100644 (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