Skip to content

Commit

Permalink
JIT: Remove "promoted parameter" tailcall limitation (#69034)
Browse files Browse the repository at this point in the history
This is allowed for explicit tailcalls so it seems unlikely that there
are any actual problems with allowing this.
  • Loading branch information
jakobbotsch authored May 12, 2022
1 parent bad2e1c commit 6bac532
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/coreclr/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6735,11 +6735,6 @@ GenTree* Compiler::fgMorphPotentialTailCall(GenTreeCall* call)
return nullptr;
}
}
if (varDsc->lvPromoted && varDsc->lvIsParam && !lvaIsImplicitByRefLocal(varNum))
{
failTailCall("Has Struct Promoted Param", varNum);
return nullptr;
}
if (varDsc->lvPinned)
{
// A tail call removes the method from the stack, which means the pinning
Expand Down

0 comments on commit 6bac532

Please sign in to comment.