summaryrefslogtreecommitdiffstats
path: root/llvm/tools/gccas
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
commitc70222dc1566079bf191f475961f7b5a3feae211 (patch)
tree8c86a44abea015f67536dcee888a40baf6a51499 /llvm/tools/gccas
parent1ff916212741891ecd9163fd7a63585aa2d822a0 (diff)
downloadbcm5719-llvm-c70222dc1566079bf191f475961f7b5a3feae211.tar.gz
bcm5719-llvm-c70222dc1566079bf191f475961f7b5a3feae211.zip
* 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. llvm-svn: 3598
Diffstat (limited to 'llvm/tools/gccas')
-rw-r--r--llvm/tools/gccas/gccas.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp
index 92f1bfa0bcb..f66432899ac 100644
--- a/llvm/tools/gccas/gccas.cpp
+++ b/llvm/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
}
OpenPOWER on IntegriCloud