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

Chris Lattner sabre at nondot.org
Sun Jan 14 23:42:06 PST 2007



Changes in directory llvm/tools/gccas:

gccas.cpp updated: 1.123 -> 1.124
---
Log message:

Run an instcombine pass after inlining but before scalarrepl.  This allows 
instcombine to clean up the code, which makes more code suitable for SRoA.
This helps C++ code in particular, e.g. speeding up tramp3d by 31%.


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

 gccas.cpp |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.123 llvm/tools/gccas/gccas.cpp:1.124
--- llvm/tools/gccas/gccas.cpp:1.123	Wed Dec  6 19:30:31 2006
+++ llvm/tools/gccas/gccas.cpp	Mon Jan 15 01:41:51 2007
@@ -102,6 +102,7 @@
 
   addPass(PM, createRaisePointerReferencesPass());// Recover type information
   addPass(PM, createTailDuplicationPass());      // Simplify cfg by copying code
+  addPass(PM, createInstructionCombiningPass()); // Cleanup for scalarrepl.
   addPass(PM, createCFGSimplificationPass());    // Merge & remove BBs
   addPass(PM, createScalarReplAggregatesPass()); // Break up aggregate allocas
   addPass(PM, createInstructionCombiningPass()); // Combine silly seq's






More information about the llvm-commits mailing list