From 6dd9fa75f82b021fb91a1895ebe0197ddcb31e86 Mon Sep 17 00:00:00 2001 From: magumagu9 Date: Tue, 23 Dec 2008 13:09:41 +0000 Subject: [PATCH] Minor JIT optimization; doesn't trigger often, but the code looks really stupid when it does. Note that the regcache tends to be sensitive code; if this change causes any regressions, feel free to revert. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1639 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/PowerPC/Jit64/JitRegCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/Core/Src/PowerPC/Jit64/JitRegCache.cpp b/Source/Core/Core/Src/PowerPC/Jit64/JitRegCache.cpp index 9ef3550245..3983f978e6 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64/JitRegCache.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64/JitRegCache.cpp @@ -262,7 +262,7 @@ void GPRRegCache::LoadToX64(int i, bool doLoad, bool makeDirty) xregs[xr].ppcReg = i; xregs[xr].dirty = makeDirty || regs[i].location.IsImm(); OpArg newloc = ::Gen::R(xr); - if (doLoad || regs[i].location.IsImm()) + if (doLoad) emit->MOV(32, newloc, regs[i].location); for (int j = 0; j < 32; j++) {