mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 13:36:28 +00:00
Allow -inline-threshold override default threshold even if compiling to optimize for size.
llvm-svn: 83274
This commit is contained in:
parent
1a5c370be3
commit
eae1bb9779
@ -192,6 +192,7 @@ bool Inliner::shouldInline(CallSite CS) {
|
||||
Function *Fn = CS.getCaller();
|
||||
if (Fn && !Fn->isDeclaration() &&
|
||||
Fn->hasFnAttr(Attribute::OptimizeForSize) &&
|
||||
InlineLimit.getNumOccurrences() == 0 &&
|
||||
InlineThreshold != 50)
|
||||
CurrentThreshold = 50;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user