Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit c459b52

Browse files
benaadamsAndyAyersMS
authored andcommitted
Allow CALLEE_IS_FORCE_INLINE precedent over CALLEE_DOES_NOT_RETURN (#14586)
Allow CALLEE_IS_FORCE_INLINE precedent over CALLEE_DOES_NOT_RETURN
1 parent d97e885 commit c459b52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jit/inlinepolicy.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,8 @@ void DefaultPolicy::NoteInt(InlineObservation obs, int value)
484484

485485
unsigned basicBlockCount = static_cast<unsigned>(value);
486486

487-
if (m_IsNoReturn && (basicBlockCount == 1))
487+
// CALLEE_IS_FORCE_INLINE overrides CALLEE_DOES_NOT_RETURN
488+
if (!m_IsForceInline && m_IsNoReturn && (basicBlockCount == 1))
488489
{
489490
SetNever(InlineObservation::CALLEE_DOES_NOT_RETURN);
490491
}

0 commit comments

Comments
 (0)