From 1dfedde7414f6b5b842d1e4489b8096f9caceb56 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Fri, 21 Jul 2023 23:09:06 -0700 Subject: [PATCH] riscv: Avoid needless save/load around compile. --- Core/MIPS/RiscV/RiscVAsm.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Core/MIPS/RiscV/RiscVAsm.cpp b/Core/MIPS/RiscV/RiscVAsm.cpp index 77ab1238db..ebd043233c 100644 --- a/Core/MIPS/RiscV/RiscVAsm.cpp +++ b/Core/MIPS/RiscV/RiscVAsm.cpp @@ -209,12 +209,10 @@ void RiscVJit::GenerateFixedCode(const JitOptions &jo) { JR(SCRATCH1); SetJumpTarget(skipJump); - // No block found, let's jit. Might be able to optimize reg/frm saving later. - SaveStaticRegisters(); + // No block found, let's jit. We don't need to save static regs, they're all callee saved. RestoreRoundingMode(true); QuickCallFunction(SCRATCH1, &MIPSComp::JitAt); ApplyRoundingMode(true); - LoadStaticRegisters(); // Try again, the block index should be set now. J(dispatcherNoCheck_);