[llvm-commits] CVS: llvm/tools/gccas/gccas.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri May 30 14:24:01 PDT 2003


Changes in directory llvm/tools/gccas:

gccas.cpp updated: 1.63 -> 1.64

---
Log message:

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


---
Diffs of the changes:

Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.63 llvm/tools/gccas/gccas.cpp:1.64
--- llvm/tools/gccas/gccas.cpp:1.63	Fri May  2 13:19:05 2003
+++ llvm/tools/gccas/gccas.cpp	Fri May 30 14:23:10 2003
@@ -71,10 +71,10 @@
   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





More information about the llvm-commits mailing list