aboutsummaryrefslogtreecommitdiff
path: root/tools/gccas/gccas.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-06 18:41:33 +0000
committerChris Lattner <sabre@nondot.org>2002-09-06 18:41:33 +0000
commit4dd7d3e34d5c581c3970f7baf940ca349c24e34e (patch)
tree0df80f3e89c4ee4c858dae8513f292d0294de86d /tools/gccas/gccas.cpp
parent513d3e8fc531327f6860a3f47a44ca120b2588c7 (diff)
* No longer need to run die after instcombine
* Run new correlated expressions pass * Simplify the CFG (removing dead blocks, merging blocks, eliminating branches on constant booleans, etc) after correlated exprs pass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3598 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r--tools/gccas/gccas.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 92f1bfa0bc..f66432899a 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -86,7 +86,9 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
// Disabling until this is fixed -- Vikram, 7/7/02.
// addPass(PM, createReassociatePass()); // Reassociate expressions
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
- addPass(PM, createDeadInstEliminationPass()); // Kill InstCombine remnants
+ addPass(PM, createCorrelatedExpressionEliminationPass());
+ addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
+ addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
addPass(PM, createLICMPass()); // Hoist loop invariants
addPass(PM, createLoadValueNumberingPass()); // GVN for load instructions
addPass(PM, createGCSEPass()); // Remove common subexprs
@@ -95,8 +97,8 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
// Run instcombine after redundancy elimination to exploit opportunities
// opened up by them.
addPass(PM, createInstructionCombiningPass());
- addPass(PM, createAggressiveDCEPass()); // SSA based 'Agressive DCE'
- addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
+ addPass(PM, createAggressiveDCEPass()); // SSA based 'Agressive DCE'
+ addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
}