From 2f6de8b335765cfed935ecd91bdad26aef7b38cd Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 11 Sep 2003 16:34:07 +0000 Subject: Move the -indvars pass much later to where it is more likely to do good stuff llvm-svn: 8470 --- llvm/tools/gccas/gccas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/gccas/gccas.cpp') 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 -- cgit v1.2.3