Skip to content
Permalink
Browse files
Merge pull request #11729 from AdmiralCurtiss/redundant-mov
Jit64: Fix possibly redundant MOV in ABI_CallFunctionPR().
  • Loading branch information
lioncash committed Apr 7, 2023
2 parents 8b9c1bf + 2ac7b5a commit 74da389
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1106,7 +1106,8 @@ class XEmitter
template <typename FunctionPointer>
void ABI_CallFunctionPR(FunctionPointer func, const void* ptr, X64Reg reg1)
{
MOV(64, R(ABI_PARAM2), R(reg1));
if (reg1 != ABI_PARAM2)
MOV(64, R(ABI_PARAM2), R(reg1));
MOV(64, R(ABI_PARAM1), Imm64(reinterpret_cast<u64>(ptr)));
ABI_CallFunction(func);
}

0 comments on commit 74da389

Please sign in to comment.