notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
misc: accept a path without slash
[pcsx_rearmed.git]
/
deps
/
lightrec
/
optimizer.c
diff --git
a/deps/lightrec/optimizer.c
b/deps/lightrec/optimizer.c
index
5ce58ad
..
58d9d56
100644
(file)
--- a/
deps/lightrec/optimizer.c
+++ b/
deps/lightrec/optimizer.c
@@
-1340,8
+1340,16
@@
static int lightrec_swap_load_delays(struct lightrec_state *state,
} else if (!in_ds && opcode_is_load(c) && c.i.op != OP_LWC2) {
next = block->opcode_list[i + 1].c;
} else if (!in_ds && opcode_is_load(c) && c.i.op != OP_LWC2) {
next = block->opcode_list[i + 1].c;
- if (c.i.op == OP_LWL && next.i.op == OP_LWR)
+ switch (next.i.op) {
+ case OP_LWL:
+ case OP_LWR:
+ case OP_REGIMM:
+ case OP_BEQ:
+ case OP_BNE:
+ case OP_BLEZ:
+ case OP_BGTZ:
continue;
continue;
+ }
if (opcode_reads_register(next, c.i.rt)
&& !opcode_writes_register(next, c.i.rs)) {
if (opcode_reads_register(next, c.i.rt)
&& !opcode_writes_register(next, c.i.rs)) {