Skip to content

Commit

Permalink
[RISC-V] Remove stack probing
Browse files Browse the repository at this point in the history
  • Loading branch information
sirntar committed Jan 11, 2024
1 parent c91bdb7 commit 1ed090d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/coreclr/jit/codegenriscv64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -865,14 +865,6 @@ void CodeGen::genFuncletProlog(BasicBlock* block)

int calleeSavedDelta = genFuncletInfo.fiSP_to_CalleeSaved_delta;

if (compiler->opts.IsOSR())
{
// With OSR we may see large values for fiSpDelta.
// We repurpose genAllocLclFram to do the necessary probing.
bool scratchRegIsZero = false;
genAllocLclFrame(-frameSize, REG_SCRATCH, &scratchRegIsZero, maskArgRegsLiveIn);
}

if (calleeSavedDelta + regsSavedSize + genFuncletInfo.fiCalleeSavedPadding <= 2040)
{
calleeSavedDelta += genFuncletInfo.fiCalleeSavedPadding;
Expand Down

0 comments on commit 1ed090d

Please sign in to comment.