mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
Move the -indvars pass much later to where it is more likely to do good stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8470 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c444a4228f
commit
473205250d
@ -60,7 +60,6 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
||||
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
|
||||
|
||||
|
||||
addPass(PM, createIndVarSimplifyPass()); // Simplify indvars
|
||||
addPass(PM, createReassociatePass()); // Reassociate expressions
|
||||
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
|
||||
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
|
||||
@ -72,6 +71,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
||||
// Run instcombine after redundancy elimination to exploit opportunities
|
||||
// opened up by them.
|
||||
addPass(PM, createInstructionCombiningPass());
|
||||
addPass(PM, createIndVarSimplifyPass()); // Canonicalize indvars
|
||||
addPass(PM, createAggressiveDCEPass()); // SSA based 'Aggressive DCE'
|
||||
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
|
||||
addPass(PM, createDeadTypeEliminationPass()); // Eliminate dead types
|
||||
|
Loading…
Reference in New Issue
Block a user