summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccas
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-30 19:23:10 +0000
committerChris Lattner <sabre@nondot.org>2003-05-30 19:23:10 +0000
commit49fac8001022d9cd0e47a52bbe8cc02d34763c82 (patch)
tree1277f5decdb62e44065d43972c1268aeef04dbe1 /llvm/tools/gccas
parent0078d9c5bb0be75483476779d177f3ce6480b7be (diff)
downloadbcm5719-llvm-49fac8001022d9cd0e47a52bbe8cc02d34763c82.tar.gz
bcm5719-llvm-49fac8001022d9cd0e47a52bbe8cc02d34763c82.zip
Move indvars pass after mem2reg pass where it is more likely to be useful
llvm-svn: 6441
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 1cefa371b6c..9d9ab6ac673 100644
--- a/llvm/tools/gccas/gccas.cpp
+++ b/llvm/tools/gccas/gccas.cpp
@@ -71,10 +71,10 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
addPass(PM, createDeadInstEliminationPass()); // Remove Dead code/vars
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
addPass(PM, createInstructionCombiningPass()); // Cleanup code for raise
- addPass(PM, createIndVarSimplifyPass()); // Simplify indvars
addPass(PM, createRaisePointerReferencesPass());// Recover type information
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
addPass(PM, createPromoteMemoryToRegister()); // Promote alloca's to regs
+ addPass(PM, createIndVarSimplifyPass()); // Simplify indvars
addPass(PM, createReassociatePass()); // Reassociate expressions
//addPass(PM, createCorrelatedExpressionEliminationPass());// Kill corr branches
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
OpenPOWER on IntegriCloud