mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-02-18 11:55:38 +00:00
CPU/Recompiler: Eliminate redundant speculative reg read
This commit is contained in:
parent
59a2309a83
commit
640ed4a2d3
|
@ -3049,8 +3049,7 @@ bool CodeGenerator::Compile_cop2(Instruction instruction, const CodeCache::Instr
|
||||||
if (g_settings.gpu_pgxp_enable)
|
if (g_settings.gpu_pgxp_enable)
|
||||||
EmitFunctionCall(nullptr, PGXP::CPU_SWC2, Value::FromConstantU32(instruction.bits), address, value);
|
EmitFunctionCall(nullptr, PGXP::CPU_SWC2, Value::FromConstantU32(instruction.bits), address, value);
|
||||||
|
|
||||||
SpeculativeValue spec_base = SpeculativeReadReg(instruction.i.rs);
|
if (spec_address)
|
||||||
if (spec_base)
|
|
||||||
SpeculativeWriteMemory(*spec_address, std::nullopt);
|
SpeculativeWriteMemory(*spec_address, std::nullopt);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue