From: Evan Cheng Date: Fri, 16 May 2008 07:57:10 +0000 (+0000) Subject: Re-enable tail duplication pass (now with default threshold down to 1 instruction). X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=df0457241d0dfe9b08c584a6d6b9abab47282895;p=oota-llvm.git Re-enable tail duplication pass (now with default threshold down to 1 instruction). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51184 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 2639a802e8d..e3ea59e26bf 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -264,6 +264,7 @@ void AddStandardCompilePasses(PassManager &PM) { addPass(PM, createFunctionInliningPass()); // Inline small functions addPass(PM, createArgumentPromotionPass()); // Scalarize uninlined fn args + addPass(PM, createTailDuplicationPass()); // Simplify cfg by copying code addPass(PM, createSimplifyLibCallsPass()); // Library Call Optimizations addPass(PM, createInstructionCombiningPass()); // Cleanup for scalarrepl. addPass(PM, createJumpThreadingPass()); // Thread jumps.