Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Closed
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
8 changes: 6 additions & 2 deletions src/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7325,9 +7325,13 @@ bool Compiler::fgCanFastTailCall(GenTreeCall* callee)
return false;
}

if (calleeStackSize > callerStackSize)
// The callee has stack arguments. This may cause us to shuffle arguments in lowerFastTailCall.
// Do not fastTailCall.
//
// We never can safely shuffle arguments in LowerFastTailCall. See https://github.com/dotnet/coreclr/issues/12468.
if (calleeStackSize > 0)
{
reportFastTailCallDecision("Will not fastTailCall calleeStackSize > callerStackSize", callerStackSize,
reportFastTailCallDecision("Will not fastTailCall calleeStackSize > 0", callerStackSize,
calleeStackSize);
return false;
}
Expand Down