1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Tweak the opt -O2 / opt -O3 inliner thresholds to be the same as llvm-gcc and

clang are using.

llvm-svn: 118118
This commit is contained in:
Jakob Stoklund Olesen 2010-11-02 23:40:28 +00:00
parent ea31f5aadd
commit 1172cd6d88

View File

@ -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();