mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Fix an 80 char line limit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163808 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -210,7 +210,8 @@ unsigned Inliner::getInlineThreshold(CallSite CS) const {
|
|||||||
Function *Caller = CS.getCaller();
|
Function *Caller = CS.getCaller();
|
||||||
bool OptSize = Caller && !Caller->isDeclaration() &&
|
bool OptSize = Caller && !Caller->isDeclaration() &&
|
||||||
Caller->hasFnAttr(Attribute::OptimizeForSize);
|
Caller->hasFnAttr(Attribute::OptimizeForSize);
|
||||||
if (!(InlineLimit.getNumOccurrences() > 0) && OptSize && OptSizeThreshold < thres)
|
if (!(InlineLimit.getNumOccurrences() > 0) && OptSize &&
|
||||||
|
OptSizeThreshold < thres)
|
||||||
thres = OptSizeThreshold;
|
thres = OptSizeThreshold;
|
||||||
|
|
||||||
// Listen to the inlinehint attribute when it would increase the threshold.
|
// Listen to the inlinehint attribute when it would increase the threshold.
|
||||||
|
Reference in New Issue
Block a user