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:
parent
ea31f5aadd
commit
1172cd6d88
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user