mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 18:53:58 +01:00
Cache fpcond in a register to avoid store/load between compare and branch
This commit is contained in:
1 parent
53800bd413
commit
17074f5a7f
5 files changed
+26
-29
No files matched your search
@@ -287,8 +287,8 @@ void Jit::BranchFPFlag(MIPSOpcode op, ArmGen::CCFlags cc, bool likely)
|
||||
if (!likely && delaySlotIsNice)
|
||||
CompileDelaySlot(DELAYSLOT_NICE);
|
||||
|
||||
LDR(R0, CTXREG, offsetof(MIPSState, fpcond));
|
||||
TST(R0, Operand2(1, TYPE_IMM));
|
||||
gpr.MapReg(MIPS_REG_FPCOND, 0);
|
||||
TST(gpr.R(MIPS_REG_FPCOND), Operand2(1, TYPE_IMM));
|
||||
|
||||
ArmGen::FixupBranch ptr;
|
||||
if (!likely)
|
||||
|
||||
Reference in new issue
Block a user