aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-02 23:40:28 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-11-02 23:40:28 +0000
commite6c6cec82bee4f419645577bffbc1f56d4c90f34 (patch)
tree3bc7885eba90c957be5bd1c05d72efba79adbc27 /tools
parent930f5efac0f76aa9e3772d9a36757f18b3573112 (diff)
downloadexternal_llvm-e6c6cec82bee4f419645577bffbc1f56d4c90f34.zip
external_llvm-e6c6cec82bee4f419645577bffbc1f56d4c90f34.tar.gz
external_llvm-e6c6cec82bee4f419645577bffbc1f56d4c90f34.tar.bz2
Tweak the opt -O2 / opt -O3 inliner thresholds to be the same as llvm-gcc and
clang are using. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/opt/opt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp
index 50f327f..b4c9682 100644
--- 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 = 200;
+ unsigned Threshold = 225;
if (OptLevel > 2)
- Threshold = 250;
+ Threshold = 275;
InliningPass = createFunctionInliningPass(Threshold);
} else {
InliningPass = createAlwaysInlinerPass();