mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 10:13:13 +00:00
Move the -indvars pass much later to where it is more likely to do good stuff
llvm-svn: 8470
This commit is contained in:
parent
3d39abeeb7
commit
1b50ec752d
@ -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…
x
Reference in New Issue
Block a user