From: Chris Lattner Date: Thu, 11 Dec 2003 17:50:32 +0000 (+0000) Subject: Run tailcall elimination in a more logical place X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ca6cc6f277390d91c1f24833ea9a6ba89ac09f3d;p=oota-llvm.git Run tailcall elimination in a more logical place git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10402 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp index c7a2204e32d..40abcca5d62 100644 --- a/tools/gccas/gccas.cpp +++ b/tools/gccas/gccas.cpp @@ -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