diff options
author | Chris Lattner <sabre@nondot.org> | 2004-04-18 05:21:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-04-18 05:21:01 +0000 |
commit | 93d82020efd104c764663d8b526b7d4a543cbb2f (patch) | |
tree | 10e1c792394eb78469d407041f6d163a2c2c64f1 /tools/gccas/gccas.cpp | |
parent | 4c174a7bbaf3ecba6473b8a5dd49e0b4fc8f1c96 (diff) |
Move loop optimization passes up, add loop unroller
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13030 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r-- | tools/gccas/gccas.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index dd2b307d3b..40e85ce4a8 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp @@ -92,14 +92,18 @@ void AddConfiguredTransformationPasses(PassManager &PM) { 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, createIndVarSimplifyPass()); // Canonicalize indvars + addPass(PM, createLoopUnrollPass()); // Unroll small loops + addPass(PM, createInstructionCombiningPass()); // Clean up after the unroller addPass(PM, createLoadValueNumberingPass()); // GVN for load instructions addPass(PM, createGCSEPass()); // Remove common subexprs addPass(PM, createSCCPPass()); // Constant prop with SCCP + addPass(PM, createSCCPPass()); // Constant prop with SCCP // 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 |