X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Foptimizer.c;fp=deps%2Flightrec%2Foptimizer.c;h=58d9d56c9ea92f35b139e66bd690814541a56fa2;hb=2ec79b77bf0925c69ece6e51fc219a1e783aa432;hp=5ce58adaec772429fbaeaa41fde12568cc4e0310;hpb=bbda82f029ab0a9bbc91cb411d2cb56745d45510;p=pcsx_rearmed.git diff --git a/deps/lightrec/optimizer.c b/deps/lightrec/optimizer.c index 5ce58ada..58d9d56c 100644 --- 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; - 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; + } if (opcode_reads_register(next, c.i.rt) && !opcode_writes_register(next, c.i.rs)) {