aboutsummaryrefslogtreecommitdiff
path: root/tools/gccas/gccas.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-07 03:19:50 +0000
committerChris Lattner <sabre@nondot.org>2005-03-07 03:19:50 +0000
commit35641ecc3752d8da2c85a0c71e738b3f922f24a8 (patch)
tree1b527da32338db043717a7dc1674544eef0b2831 /tools/gccas/gccas.cpp
parent001d16aa9c9b68691956bd7829c3993ca8ed2302 (diff)
move the reassociation pass after the LICM pass. This speeds up mgrid
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
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r--tools/gccas/gccas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 83de4ebe25..7e22235f7c 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -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