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 | bf9ba24155c4c3e90ee42d622eba32062832256e (patch) | |
tree | b11ced201d6639f10f4e71d22a92f0dd1b6b157a /llvm/tools/gccas/gccas.cpp | |
parent | e4ce5dbd1da69dc5925a600ea384905e6a4247a7 (diff) | |
download | bcm5719-llvm-bf9ba24155c4c3e90ee42d622eba32062832256e.tar.gz bcm5719-llvm-bf9ba24155c4c3e90ee42d622eba32062832256e.zip |
Move loop optimization passes up, add loop unroller
llvm-svn: 13030
Diffstat (limited to 'llvm/tools/gccas/gccas.cpp')
-rw-r--r-- | llvm/tools/gccas/gccas.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp index dd2b307d3b8..40e85ce4a8a 100644 --- a/llvm/tools/gccas/gccas.cpp +++ b/llvm/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 |