ARM64: Improve register allocation for integer IR_MUL/IR_MULOV.

Thanks to Peter Cawley. #1062
This commit is contained in:
Mike Pall 2023-08-29 22:38:20 +02:00
parent 7ff8f26eb8
commit 2f6c451ce8

View 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);