JIT: Simplify redundant if statements for memcheck.

This commit is contained in:
magumagu 2014-05-25 19:23:57 -07:00
parent 010ca048df
commit 68a327c246
2 changed files with 2 additions and 6 deletions

View File

@ -176,14 +176,14 @@ void Jit64::lXXx(UGeckoInstruction inst)
{
u32 val = (u32)gpr.R(a).offset + (s32)inst.SIMM_16;
opAddress = Imm32(val);
if (update && !js.memcheck)
if (update)
gpr.SetImmediate32(a, val);
}
else if ((inst.OPCD == 31) && gpr.R(a).IsImm() && gpr.R(b).IsImm() && !js.memcheck)
{
u32 val = (u32)gpr.R(a).offset + (u32)gpr.R(b).offset;
opAddress = Imm32(val);
if (update && !js.memcheck)
if (update)
gpr.SetImmediate32(a, val);
}
else

View File

@ -324,12 +324,8 @@ void Jit64::lfsx(UGeckoInstruction inst)
#else
MOVD_xmm(XMM0, MComplex(RBX, EAX, SCALE_1, 0));
#endif
MEMCHECK_START
PSHUFB(XMM0, M((void *)bswapShuffle1x4));
ConvertSingleToDouble(s, XMM0);
MEMCHECK_END
} else {
SafeLoadToReg(EAX, R(EAX), 32, 0, RegistersInUse(), false);