diff options
| author | magumagu9 <magumagu9@gmail.com> | 2008-12-23 13:09:41 +0000 |
|---|---|---|
| committer | magumagu9 <magumagu9@gmail.com> | 2008-12-23 13:09:41 +0000 |
| commit | 6dd9fa75f82b021fb91a1895ebe0197ddcb31e86 (patch) | |
| tree | 8827b27fef4bf6047e20303c35fb17a59a857735 /Source/Core | |
| parent | 21d8e522ca6d0668e7aab23220c8d592b6793b9e (diff) | |
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
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Src/PowerPC/Jit64/JitRegCache.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |
