From 2f6c451ce8db5b5bc88126c9856e15f25fd5beae Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Tue, 29 Aug 2023 22:38:20 +0200 Subject: ARM64: Improve register allocation for integer IR_MUL/IR_MULOV. Thanks to Peter Cawley. #1062 --- src/lj_asm_arm64.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3-55-g6feb