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:
930f5ef
)
Tweak the opt -O2 / opt -O3 inliner thresholds to be the same as llvm-gcc and
author
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Tue, 2 Nov 2010 23:40:28 +0000
(23:40 +0000)
committer
Jakob Stoklund Olesen
<stoklund@2pi.dk>
Tue, 2 Nov 2010 23:40:28 +0000
(23:40 +0000)
clang are using.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118118
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 50f327f8940c8a59967a80d86abd66871665725a..b4c96820b5a86e064a6a0ade46514944bae02f0d 100644
(file)
--- a/
tools/opt/opt.cpp
+++ b/
tools/opt/opt.cpp
@@
-355,9
+355,9
@@
void AddOptimizationPasses(PassManagerBase &MPM, PassManagerBase &FPM,
if (DisableInline) {
// No inlining pass
} else if (OptLevel) {
- unsigned Threshold = 2
00
;
+ unsigned Threshold = 2
25
;
if (OptLevel > 2)
- Threshold = 2
50
;
+ Threshold = 2
75
;
InliningPass = createFunctionInliningPass(Threshold);
} else {
InliningPass = createAlwaysInlinerPass();