summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authormagumagu <magumagu9@gmail.com>2014-05-25 19:23:57 -0700
committermagumagu <magumagu9@gmail.com>2014-05-25 21:13:39 -0700
commit68a327c246d82d8529af692abc7843858dca4cab (patch)
tree274236516de459a78d8b799670158203a5d59cf7 /Source/Core
parent010ca048dff77340024987cfd341e82e0a02b879 (diff)
JIT: Simplify redundant if statements for memcheck.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp4
-rw-r--r--Source/Core/Core/PowerPC/Jit64/Jit_LoadStoreFloating.cpp4
2 files changed, 2 insertions, 6 deletions
diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp
index f408a5b7bd..cdc8683480 100644
--- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp
+++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStore.cpp
@@ -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
diff --git a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStoreFloating.cpp b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStoreFloating.cpp
index cd0261e158..88eeacc30b 100644
--- a/Source/Core/Core/PowerPC/Jit64/Jit_LoadStoreFloating.cpp
+++ b/Source/Core/Core/PowerPC/Jit64/Jit_LoadStoreFloating.cpp
@@ -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);