From: Mike Pall Date: Tue, 29 Aug 2023 20:38:20 +0000 (+0200) Subject: ARM64: Improve register allocation for integer IR_MUL/IR_MULOV. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f6c451ce8db5b5bc88126c9856e15f25fd5beae;p=thirdparty%2FLuaJIT.git ARM64: Improve register allocation for integer IR_MUL/IR_MULOV. Thanks to Peter Cawley. #1062 --- diff --git a/src/lj_asm_arm64.h b/src/lj_asm_arm64.h index c216fced..5e690308 100644 --- a/src/lj_asm_arm64.h +++ b/src/lj_asm_arm64.h @@ -1441,7 +1441,7 @@ static void asm_intneg(ASMState *as, IRIns *ir) static void asm_intmul(ASMState *as, IRIns *ir) { Reg dest = ra_dest(as, ir, RSET_GPR); - Reg left = ra_alloc1(as, ir->op1, rset_exclude(RSET_GPR, dest)); + Reg left = ra_alloc1(as, ir->op1, RSET_GPR); Reg right = ra_alloc1(as, ir->op2, rset_exclude(RSET_GPR, left)); if (irt_isguard(ir->t)) { /* IR_MULOV */ asm_guardcc(as, CC_NE);