summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccas
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-09-11 16:34:07 +0000
committerChris Lattner <sabre@nondot.org>2003-09-11 16:34:07 +0000
commit2f6de8b335765cfed935ecd91bdad26aef7b38cd (patch)
treed3cb6c208f89ef2473f2ed7254c453732bbda8b3 /llvm/tools/gccas
parentbb9d03b9c02529004f33faab7ffc8317686b43de (diff)
downloadbcm5719-llvm-2f6de8b335765cfed935ecd91bdad26aef7b38cd.tar.gz
bcm5719-llvm-2f6de8b335765cfed935ecd91bdad26aef7b38cd.zip
Move the -indvars pass much later to where it is more likely to do good stuff
llvm-svn: 8470
Diffstat (limited to 'llvm/tools/gccas')
-rw-r--r--llvm/tools/gccas/gccas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp
index 8f0b77bac9c..5ba382eaa9e 100644
--- a/llvm/tools/gccas/gccas.cpp
+++ b/llvm/tools/gccas/gccas.cpp
@@ -60,7 +60,6 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
- addPass(PM, createIndVarSimplifyPass()); // Simplify indvars
addPass(PM, createReassociatePass()); // Reassociate expressions
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
@@ -72,6 +71,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
// Run instcombine after redundancy elimination to exploit opportunities
// opened up by them.
addPass(PM, createInstructionCombiningPass());
+ addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars
addPass(PM, createAggressiveDCEPass()); // SSA based 'Aggressive DCE'
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
addPass(PM, createDeadTypeEliminationPass()); // Eliminate dead types
OpenPOWER on IntegriCloud