Skip to content

Commit ae18664

Browse files
committed
Use a more conservative inline theshold to ensure always inline
1 parent d923661 commit ae18664

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/Runtime/Base/FunctionBody.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6834,9 +6834,9 @@ namespace Js
68346834
- If the size is >= 100, scale by 1.6
68356835
*/
68366836
const uint loopPercentage = GetByteCodeInLoopCount() * 100 / max(1u, GetByteCodeCount());
6837-
const int byteCodeSizeThresholdForInlineCandidate = CONFIG_FLAG(InlineThreshold) + CONFIG_FLAG(InlineThresholdAdjustCountInSmallFunction);
6837+
const int byteCodeSizeThresholdForInlineCandidate = CONFIG_FLAG(LoopInlineThreshold);
68386838
bool delayFullJITThisFunc =
6839-
(CONFIG_FLAG(DelayFullJITSmallFunc) > 0) && (byteCodeSizeThresholdForInlineCandidate < 0 || this->GetByteCodeWithoutLDACount() > (uint)byteCodeSizeThresholdForInlineCandidate);
6839+
(CONFIG_FLAG(DelayFullJITSmallFunc) > 0) && (this->GetByteCodeWithoutLDACount() <= (uint)byteCodeSizeThresholdForInlineCandidate);
68406840

68416841
if(loopPercentage <= 50 || delayFullJITThisFunc)
68426842
{

0 commit comments

Comments
 (0)