Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11338 from JosJuice/jitarm64-revert-supposed-tail
Revert "JitArm64: Optimize a few tail calls"
  • Loading branch information
lioncash committed Dec 10, 2022
2 parents 098e2b3 + 64bc150 commit 48ce531
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions Source/Core/Core/PowerPC/JitArm64/Jit.cpp
Expand Up @@ -350,9 +350,8 @@ void JitArm64::IntializeSpeculativeConstants()
STR(IndexType::Unsigned, DISPATCHER_PC, PPC_REG, PPCSTATE_OFF(pc));
MOVP2R(ARM64Reg::X8, &JitInterface::CompileExceptionCheck);
MOVI2R(ARM64Reg::W0, static_cast<u32>(JitInterface::ExceptionType::SpeculativeConstants));
// Write dispatcher_no_check to LR for tail call
MOVP2R(ARM64Reg::X30, dispatcher_no_check);
BR(ARM64Reg::X8);
BLR(ARM64Reg::X8);
B(dispatcher_no_check);
SwitchToNearCode();
}

Expand Down Expand Up @@ -844,11 +843,10 @@ bool JitArm64::DoJit(u32 em_address, JitBlock* b, u32 nextPC)
SetJumpTarget(fail);
MOVI2R(DISPATCHER_PC, js.blockStart);
STR(IndexType::Unsigned, DISPATCHER_PC, PPC_REG, PPCSTATE_OFF(pc));
MOVP2R(ARM64Reg::X8, &JitInterface::CompileExceptionCheck);
MOVI2R(ARM64Reg::W0, static_cast<u32>(JitInterface::ExceptionType::PairedQuantize));
// Write dispatcher_no_check to LR for tail call
MOVP2R(ARM64Reg::X30, dispatcher_no_check);
BR(ARM64Reg::X8);
MOVP2R(ARM64Reg::X1, &JitInterface::CompileExceptionCheck);
BLR(ARM64Reg::X1);
B(dispatcher_no_check);
SwitchToNearCode();
SetJumpTarget(no_fail);
js.assumeNoPairedQuantize = true;
Expand Down

0 comments on commit 48ce531

Please sign in to comment.