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
This commit is contained in:
magumagu9 2008-12-23 13:09:41 +00:00
parent 21d8e522ca
commit 6dd9fa75f8

View File

@ -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++)
{