mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
* 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
This commit is contained in:
@@ -86,7 +86,9 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
|||||||
// Disabling until this is fixed -- Vikram, 7/7/02.
|
// Disabling until this is fixed -- Vikram, 7/7/02.
|
||||||
// addPass(PM, createReassociatePass()); // Reassociate expressions
|
// addPass(PM, createReassociatePass()); // Reassociate expressions
|
||||||
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
|
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, createLICMPass()); // Hoist loop invariants
|
||||||
addPass(PM, createLoadValueNumberingPass()); // GVN for load instructions
|
addPass(PM, createLoadValueNumberingPass()); // GVN for load instructions
|
||||||
addPass(PM, createGCSEPass()); // Remove common subexprs
|
addPass(PM, createGCSEPass()); // Remove common subexprs
|
||||||
@@ -95,8 +97,8 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
|||||||
// Run instcombine after redundancy elimination to exploit opportunities
|
// Run instcombine after redundancy elimination to exploit opportunities
|
||||||
// opened up by them.
|
// opened up by them.
|
||||||
addPass(PM, createInstructionCombiningPass());
|
addPass(PM, createInstructionCombiningPass());
|
||||||
addPass(PM, createAggressiveDCEPass()); // SSA based 'Agressive DCE'
|
addPass(PM, createAggressiveDCEPass()); // SSA based 'Agressive DCE'
|
||||||
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
|
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user