From 78b7a3a6874abad6d2326093287554f3e565a382 Mon Sep 17 00:00:00 2001 From: lemon Date: Thu, 15 Jun 2023 13:25:06 +0200 Subject: hint in-place operations to use same reg for lhs and dest --- regalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regalloc.c b/regalloc.c index a43425c..a8980cf 100644 --- a/regalloc.c +++ b/regalloc.c @@ -287,7 +287,7 @@ regalloc(struct function *fn) } def(&ra, ins, blk, i); if (ins->op != Ocall) { - if (ins->op == Ocopy) hint0 = ins->reg - 1; + if (ins->op == Ocopy || ins->inplace) hint0 = ins->reg - 1; if (ins->op == Omove) { if (ins->l.t == RREG) hint1 = ins->l.i; /* MOV Rx,Rx is used by isel to indicate a clobber, -- cgit v1.2.3