forked from OSchip/llvm-project
Run tailcall elimination in a more logical place
llvm-svn: 10402
This commit is contained in:
parent
17790fbb5b
commit
ed9fc4baad
|
@ -74,11 +74,11 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
|||
addPass(PM, createTailDuplicationPass()); // Simplify cfg by copying code
|
||||
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
|
||||
addPass(PM, createScalarReplAggregatesPass()); // Break up aggregate allocas
|
||||
addPass(PM, createTailCallEliminationPass()); // Eliminate tail calls
|
||||
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
|
||||
|
||||
addPass(PM, createReassociatePass()); // Reassociate expressions
|
||||
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
|
||||
addPass(PM, createTailCallEliminationPass()); // Eliminate tail calls
|
||||
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
|
||||
addPass(PM, createLICMPass()); // Hoist loop invariants
|
||||
addPass(PM, createLoadValueNumberingPass()); // GVN for load instructions
|
||||
|
|
Loading…
Reference in New Issue