projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66ae104
)
Re-enable tail duplication pass (now with default threshold down to 1 instruction).
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 16 May 2008 07:57:10 +0000
(07:57 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 16 May 2008 07:57:10 +0000
(07:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51184
91177308
-0d34-0410-b5e6-
96231b3b80d8
tools/opt/opt.cpp
patch
|
blob
|
history
diff --git
a/tools/opt/opt.cpp
b/tools/opt/opt.cpp
index 2639a802e8dc012c436659caa82f1eacb89fd7c6..e3ea59e26bf0b5e67e9f3a40867006a202e87518 100644
(file)
--- 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.