summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita9beaacac6cb32e4f20d31d1b28a8cc10f75d1f4 (patch)
tree075b31acb3c7bfb97bf41e324dce83ac08233b13 /llvm/tools/gccas/gccas.cpp
parente9328b319c502012a6be5b47f6692c6d2f33734a (diff)
downloadbcm5719-llvm-a9beaacac6cb32e4f20d31d1b28a8cc10f75d1f4.tar.gz
bcm5719-llvm-a9beaacac6cb32e4f20d31d1b28a8cc10f75d1f4.zip
move the reassociation pass after the LICM pass. This speeds up mgrid
from 10.27s to 9.57s with the CBE. llvm-svn: 20508
Diffstat (limited to 'llvm/tools/gccas/gccas.cpp')
-rw-r--r--llvm/tools/gccas/gccas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp
index 83de4ebe253..7e22235f7c0 100644
--- a/llvm/tools/gccas/gccas.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud