Cache fpcond in a register to avoid store/load between compare and branch

This commit is contained in:
Henrik Rydgård committed 2013-11-12 10:33:38 +01:00
1 parent 53800bd413
commit 17074f5a7f
5 files changed
+26 -29

No files matched your search

+2 -2
View File
@@ -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)