Separate out jit reading nearby instructions.

This makes it easier to use an IR for these things, or remove them.
This commit is contained in:
Henrik Rydgård authored and Unknown W. Brackets committed 2015-04-11 00:53:24 -07:00
1 parent 59d0baca93
commit a897723e6a
14 files changed
+51 -36

No files matched your search

+1 -1
View File
@@ -139,7 +139,7 @@ namespace MIPSComp
if (!js.inDelaySlot) {
// Optimisation: Combine to single unaligned load/store
bool isLeft = (o == 34 || o == 42);
MIPSOpcode nextOp = Memory::Read_Instruction(js.compilerPC + 4);
MIPSOpcode nextOp = GetOffsetInstruction(1);
// Find a matching shift in opposite direction with opposite offset.
if (nextOp == (isLeft ? (op.encoding + (4<<26) - 3)
: (op.encoding - (4<<26) + 3)))