move the reassociation pass after the LICM pass. This speeds up mgrid
authorChris Lattner <sabre@nondot.org>
Mon, 7 Mar 2005 03:19:50 +0000 (03:19 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 7 Mar 2005 03:19:50 +0000 (03:19 +0000)
from 10.27s to 9.57s with the CBE.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20508 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccas/gccas.cpp

index 83de4ebe253d5c4c125e2c085e3e04a6bbc50576..7e22235f7c0583fb1b82c010b103de9da1373a8d 100644 (file)
@@ -103,12 +103,12 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
   addPass(PM, createScalarReplAggregatesPass()); // Break up aggregate allocas
   addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
 
-  addPass(PM, createReassociatePass());          // Reassociate expressions
   addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
   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, createReassociatePass());          // Reassociate expressions
+  addPass(PM, createInstructionCombiningPass()); // Clean up after LICM/reassoc
   addPass(PM, createIndVarSimplifyPass());       // Canonicalize indvars
   addPass(PM, createLoopUnrollPass());           // Unroll small loops
   addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller