From 68defb72a30094bffd50d3d5f81b8d45d8cad737 Mon Sep 17 00:00:00 2001 From: degasus Date: Sat, 27 Feb 2016 21:12:32 +0100 Subject: [PATCH] JitArm64: Don't generate the carry if it's not used any more. --- Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp index 2669c719e8..4e1f26e072 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Integer.cpp @@ -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));