arm64jit: Avoid spilling an extra reg for lwl/lwr.

It's only needed for swl and swr.
This commit is contained in:
Unknown W. Brackets 2017-12-31 16:39:11 -08:00
parent 8ffb0101fe
commit d8d174fa2b

View file

@ -180,7 +180,7 @@ namespace MIPSComp {
gpr.SpillLock(rs);
// Need to get temps before skipping safe mem.
ARM64Reg LR_SCRATCH3 = gpr.GetAndLockTempR();
ARM64Reg LR_SCRATCH4 = gpr.GetAndLockTempR();
ARM64Reg LR_SCRATCH4 = o == 42 || o == 46 ? gpr.GetAndLockTempR() : INVALID_REG;
if (!g_Config.bFastMemory && rs != MIPS_REG_SP) {
skips = SetScratch1ForSafeAddress(rs, offset, SCRATCH2);