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

Chris Lattner lattner at cs.uiuc.edu
Sun Apr 18 00:21:42 PDT 2004


Changes in directory llvm/tools/gccas:

gccas.cpp updated: 1.95 -> 1.96

---
Log message:

Move loop optimization passes up, add loop unroller


---
Diffs of the changes:  (+5 -1)

Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.95 llvm/tools/gccas/gccas.cpp:1.96
--- llvm/tools/gccas/gccas.cpp:1.95	Sat Mar 13 15:38:35 2004
+++ llvm/tools/gccas/gccas.cpp	Sun Apr 18 00:21:01 2004
@@ -92,14 +92,18 @@
   addPass(PM, createTailCallEliminationPass());  // Eliminate tail calls
   addPass(PM, createCFGSimplificationPass());    // Merge & remove BBs
   addPass(PM, createLICMPass());                 // Hoist loop invariants
+  addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller
+  addPass(PM, createIndVarSimplifyPass());       // Canonicalize indvars
+  addPass(PM, createLoopUnrollPass());           // Unroll small loops
+  addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller
   addPass(PM, createLoadValueNumberingPass());   // GVN for load instructions
   addPass(PM, createGCSEPass());                 // Remove common subexprs
   addPass(PM, createSCCPPass());                 // Constant prop with SCCP
+  addPass(PM, createSCCPPass());                 // Constant prop with SCCP
 
   // Run instcombine after redundancy elimination to exploit opportunities
   // opened up by them.
   addPass(PM, createInstructionCombiningPass());
-  addPass(PM, createIndVarSimplifyPass());       // Canonicalize indvars
   addPass(PM, createAggressiveDCEPass());        // SSA based 'Aggressive DCE'
   addPass(PM, createCFGSimplificationPass());    // Merge & remove BBs
   addPass(PM, createDeadTypeEliminationPass());  // Eliminate dead types





More information about the llvm-commits mailing list