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:
degasus 2017-11-18 17:42:11 +01:00
parent 6c9bb67ca0
commit 6ea3f538b4
1 changed files with 6 additions and 1 deletions

View File

@ -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);
}
}