mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-24 16:49:50 +00:00
jit-ir: Skip flushing when updating PC.
This commit is contained in:
parent
d09f3a22a8
commit
a22ff68e9e
@ -273,7 +273,16 @@ bool PropagateConstants(const IRWriter &in, IRWriter &out) {
|
||||
break;
|
||||
|
||||
case IROp::Downcount:
|
||||
out.Write(inst);
|
||||
case IROp::SetPCConst:
|
||||
goto doDefault;
|
||||
|
||||
case IROp::SetPC:
|
||||
if (gpr.IsImm(inst.src1)) {
|
||||
out.Write(IROp::SetPCConst, out.AddConstant(gpr.GetImm(inst.src1)));
|
||||
} else {
|
||||
gpr.MapIn(inst.src1);
|
||||
goto doDefault;
|
||||
}
|
||||
break;
|
||||
|
||||
// FP-only instructions don't need to flush immediates.
|
||||
|
Loading…
Reference in New Issue
Block a user