From 0e58b3cfb7d8cf24fd42312951fe6cd705e62ffd Mon Sep 17 00:00:00 2001 From: Sintendo <3380580+Sintendo@users.noreply.github.com> Date: Sun, 30 Jun 2024 09:53:48 +0200 Subject: [PATCH 1/2] JitArm64_FloatingPoint: Remove unused temp_gpr from fp_arith --- Source/Core/Core/PowerPC/JitArm64/JitArm64_FloatingPoint.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_FloatingPoint.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_FloatingPoint.cpp index d662c9c3cb..06e3974b9c 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_FloatingPoint.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_FloatingPoint.cpp @@ -132,8 +132,6 @@ void JitArm64::fp_arith(UGeckoInstruction inst) result_reg = reg_encoder(V1Q); } - const ARM64Reg temp_gpr = m_accurate_nans && !single ? gpr.GetReg() : ARM64Reg::INVALID_REG; - switch (op5) { case 18: @@ -251,8 +249,6 @@ void JitArm64::fp_arith(UGeckoInstruction inst) fpr.Unlock(V0Q); if (V1Q != ARM64Reg::INVALID_REG) fpr.Unlock(V1Q); - if (temp_gpr != ARM64Reg::INVALID_REG) - gpr.Unlock(temp_gpr); if (output_is_single) { From 9af7772d91d085ee4377143a67f87f63e99130e1 Mon Sep 17 00:00:00 2001 From: Sintendo <3380580+Sintendo@users.noreply.github.com> Date: Sun, 30 Jun 2024 09:54:09 +0200 Subject: [PATCH 2/2] JitArm64_Paired: Remove unused temp_gpr from ps_arith --- Source/Core/Core/PowerPC/JitArm64/JitArm64_Paired.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Paired.cpp b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Paired.cpp index 398afc8d69..23a06e48ca 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_Paired.cpp +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_Paired.cpp @@ -141,8 +141,6 @@ void JitArm64::ps_arith(UGeckoInstruction inst) result_reg = reg_encoder(V1Q); } - const ARM64Reg temp_gpr = m_accurate_nans && !singles ? gpr.GetReg() : ARM64Reg::INVALID_REG; - if (m_accurate_nans) { if (V0Q == ARM64Reg::INVALID_REG) @@ -304,8 +302,6 @@ void JitArm64::ps_arith(UGeckoInstruction inst) fpr.Unlock(V1Q); if (V2Q != ARM64Reg::INVALID_REG) fpr.Unlock(V2Q); - if (temp_gpr != ARM64Reg::INVALID_REG) - gpr.Unlock(temp_gpr); ASSERT_MSG(DYNA_REC, singles == singles_func(), "Register allocation turned singles into doubles in the middle of ps_arith");