mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
JitArm64: Inline GP check in Cleanup.
We're calling this function up to 2M times per second. Let's inline the pre-check.
This commit is contained in:
parent
6c9bb67ca0
commit
6ea3f538b4
@ -231,8 +231,13 @@ void JitArm64::Cleanup()
|
||||
{
|
||||
if (jo.optimizeGatherPipe && js.fifoBytesSinceCheck > 0)
|
||||
{
|
||||
MOVP2R(X0, &GPFifo::FastCheckGatherPipe);
|
||||
LDP(INDEX_SIGNED, X0, X1, PPC_REG, PPCSTATE_OFF(gather_pipe_ptr));
|
||||
SUB(X0, X0, X1);
|
||||
CMP(X0, GPFifo::GATHER_PIPE_SIZE);
|
||||
FixupBranch exit = B(CC_LT);
|
||||
MOVP2R(X0, &GPFifo::UpdateGatherPipe);
|
||||
BLR(X0);
|
||||
SetJumpTarget(exit);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user