summaryrefslogtreecommitdiff
path: root/tools/opt/opt.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-05-16 07:57:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-05-16 07:57:10 +0000
commitdf0457241d0dfe9b08c584a6d6b9abab47282895 (patch)
tree7ee855b3ae471fe0088cb2aa8232123f82606358 /tools/opt/opt.cpp
parent66ae104cd1cc558cb1cc68db581e271ed61db289 (diff)
downloadllvm-df0457241d0dfe9b08c584a6d6b9abab47282895.tar.gz
llvm-df0457241d0dfe9b08c584a6d6b9abab47282895.tar.bz2
llvm-df0457241d0dfe9b08c584a6d6b9abab47282895.tar.xz
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
Diffstat (limited to 'tools/opt/opt.cpp')
-rw-r--r--tools/opt/opt.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 2639a802e8..e3ea59e26b 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.