Skip to content

Commit d2cdcdd

Browse files
authored
JIT: Relax address exposure check for tailcalls (#111397)
The `lvHasLdAddrOp` based check is conservative: address exposure (as computed in local morph) is much more precise. We can switch to that check only.
1 parent 8104cb1 commit d2cdcdd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/coreclr/jit/morph.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5119,11 +5119,6 @@ GenTree* Compiler::fgMorphPotentialTailCall(GenTreeCall* call)
51195119
//
51205120
if (isImplicitOrStressTailCall)
51215121
{
5122-
if (varDsc->lvHasLdAddrOp && !lvaIsImplicitByRefLocal(varNum))
5123-
{
5124-
failTailCall("Local address taken", varNum);
5125-
return nullptr;
5126-
}
51275122
if (varDsc->IsAddressExposed())
51285123
{
51295124
if (lvaIsImplicitByRefLocal(varNum))

0 commit comments

Comments
 (0)