diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-07 03:19:50 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-07 03:19:50 +0000 |
commit | a9beaacac6cb32e4f20d31d1b28a8cc10f75d1f4 (patch) | |
tree | 075b31acb3c7bfb97bf41e324dce83ac08233b13 /llvm/tools/gccas/gccas.cpp | |
parent | e9328b319c502012a6be5b47f6692c6d2f33734a (diff) | |
download | bcm5719-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.cpp | 4 |
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 |