JIT: Fix redundant MOVs in x86 trampolines

Fixes spammy log messages about redundant MOVs.
This commit is contained in:
Fiora 2014-12-21 12:06:07 -08:00
parent 9b2909357b
commit 3b7d7da1ac

View File

@ -86,7 +86,8 @@ const u8* TrampolineCache::GenerateReadTrampoline(const InstructionInfo &info, B
break;
}
MOV(dataRegSize, R(dataReg), R(ABI_RETURN));
if (dataReg != ABI_RETURN)
MOV(dataRegSize, R(dataReg), R(ABI_RETURN));
ABI_PopRegistersAndAdjustStack(registersInUse, 8);
RET();