mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +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:
parent
513d3e8fc5
commit
4dd7d3e34d
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user