Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/coreclr/jit/regallocwasm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -578,16 +578,12 @@ void WasmRegAlloc::CollectReferencesForCall(GenTreeCall* callNode)

// For a fast tail call, wrap the SP arg with ADD(SP, FRAME_SIZE) so codegen
// undoes the prolog's SP adjustment and the callee sees the incoming SP.
// The arg has been rewritten to GT_PHYSREG above (args are visited before the call).
if (callNode->IsFastTailCall())
{
CallArg* const spArg = callNode->gtArgs.FindWellKnownArg(WellKnownArg::WasmShadowStackPointer);
if (spArg != nullptr)
{
GenTree* const physReg = spArg->GetNode();
assert(physReg != nullptr);
assert(physReg->OperIs(GT_PHYSREG));
assert(physReg->AsPhysReg()->gtSrcReg == m_perFuncletData[m_currentFunclet]->m_spReg);
// Fast tail calls from funclets are not supported.
assert(m_currentFunclet == ROOT_FUNC_IDX);

Expand Down
Loading