diff options
author | Chris Lattner <sabre@nondot.org> | 2005-05-07 22:45:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-05-07 22:45:35 +0000 |
commit | cbe92e6d4a1006664e678a8b9a825e8714f2a36b (patch) | |
tree | 985787d35ae49a1702dcdd52f2e3eda5bf2c7b7f /tools/gccas | |
parent | c0649ac931d22b7118c1db292b887cd4eb52cd32 (diff) | |
download | external_llvm-cbe92e6d4a1006664e678a8b9a825e8714f2a36b.zip external_llvm-cbe92e6d4a1006664e678a8b9a825e8714f2a36b.tar.gz external_llvm-cbe92e6d4a1006664e678a8b9a825e8714f2a36b.tar.bz2 |
Move licm after reassociate, add some cond-propagate passes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas')
-rw-r--r-- | tools/gccas/gccas.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index fae4ddb..2791cf4 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp @@ -103,11 +103,12 @@ void AddConfiguredTransformationPasses(PassManager &PM) { addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs addPass(PM, createScalarReplAggregatesPass()); // Break up aggregate allocas addPass(PM, createInstructionCombiningPass()); // Combine silly seq's + addPass(PM, createCondPropagationPass()); // Propagate conditionals addPass(PM, createTailCallEliminationPass()); // Eliminate tail calls addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs - addPass(PM, createLICMPass()); // Hoist loop invariants addPass(PM, createReassociatePass()); // Reassociate expressions + addPass(PM, createLICMPass()); // Hoist loop invariants addPass(PM, createInstructionCombiningPass()); // Clean up after LICM/reassoc addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars addPass(PM, createLoopUnrollPass()); // Unroll small loops @@ -119,6 +120,8 @@ void AddConfiguredTransformationPasses(PassManager &PM) { // Run instcombine after redundancy elimination to exploit opportunities // opened up by them. addPass(PM, createInstructionCombiningPass()); + addPass(PM, createCondPropagationPass()); // Propagate conditionals + addPass(PM, createDeadStoreEliminationPass()); // Delete dead stores addPass(PM, createAggressiveDCEPass()); // SSA based 'Aggressive DCE' addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs |