Merge pull request #3681 from degasus/arm

JitArm64: Don't generate the carry if it's not used any more.
This commit is contained in:
Ryan Houdek 2016-02-28 16:23:04 -05:00
commit 9212f35b4c
1 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,9 @@ void JitArm64::ComputeRC(u64 imm, int crf, bool needs_sext)
void JitArm64::ComputeCarry(bool Carry)
{
if (!js.op->wantsCA)
return;
if (Carry)
{
ARM64Reg WA = gpr.GetReg();
@ -64,6 +67,9 @@ void JitArm64::ComputeCarry(bool Carry)
void JitArm64::ComputeCarry()
{
if (!js.op->wantsCA)
return;
ARM64Reg WA = gpr.GetReg();
CSINC(WA, WSP, WSP, CC_CC);
STRB(INDEX_UNSIGNED, WA, X29, PPCSTATE_OFF(xer_ca));