mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 22:20:37 +00:00
Allow -inline-threshold override default threshold even if compiling to optimize for size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83274 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d113c6b601
commit
a0479e5332
@ -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