aboutsummaryrefslogtreecommitdiffstats
path: root/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
commit473205250de3289cda13b18e31c3f2fceb6e2e6a (patch)
tree72b2e442ea0c484f874450c10af2ea679013b805 /tools/gccas
parentc444a4228f31656f854d15eac671b450df557346 (diff)
downloadexternal_llvm-473205250de3289cda13b18e31c3f2fceb6e2e6a.zip
external_llvm-473205250de3289cda13b18e31c3f2fceb6e2e6a.tar.gz
external_llvm-473205250de3289cda13b18e31c3f2fceb6e2e6a.tar.bz2
Move the -indvars pass much later to where it is more likely to do good stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8470 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas')
-rw-r--r--tools/gccas/gccas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 8f0b77b..5ba382e 100644
--- a/tools/gccas/gccas.cpp
+++ b/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