From 1ed090d4ab1e5deb1252e9eb69e740868d61f607 Mon Sep 17 00:00:00 2001 From: Tymoteusz Wenerski Date: Tue, 9 Jan 2024 13:06:04 +0100 Subject: [PATCH] [RISC-V] Remove stack probing --- src/coreclr/jit/codegenriscv64.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/coreclr/jit/codegenriscv64.cpp b/src/coreclr/jit/codegenriscv64.cpp index 1420e055e5259..399ed12e068b9 100644 --- a/src/coreclr/jit/codegenriscv64.cpp +++ b/src/coreclr/jit/codegenriscv64.cpp @@ -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;