]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
ARM64: Improve register allocation for integer IR_MUL/IR_MULOV.
authorMike Pall <mike>
Tue, 29 Aug 2023 20:38:20 +0000 (22:38 +0200)
committerMike Pall <mike>
Tue, 29 Aug 2023 20:38:20 +0000 (22:38 +0200)
Thanks to Peter Cawley. #1062

src/lj_asm_arm64.h

index c216fced79ddf3a17094e39d5bba367e51363a2f..5e690308c3d2cdc064ba1411783b0c035bcd4efc 100644 (file)
@@ -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);