From 3b7d7da1ac1efd47891f7b1d0cce5e6dea06f764 Mon Sep 17 00:00:00 2001 From: Fiora Date: Sun, 21 Dec 2014 12:06:07 -0800 Subject: [PATCH] JIT: Fix redundant MOVs in x86 trampolines Fixes spammy log messages about redundant MOVs. --- Source/Core/Core/PowerPC/JitCommon/TrampolineCache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.cpp b/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.cpp index fb1503b56d..2561b436af 100644 --- a/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.cpp +++ b/Source/Core/Core/PowerPC/JitCommon/TrampolineCache.cpp @@ -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();