qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 9639940cb46f0f8b5dcd872e99a9801df742f24c
parent 84f1e2950b3ab41523f25d205c99e9d8afd7ebba
Author: Michael Forney <mforney@mforney.org>
Date:   Sun, 19 Apr 2020 16:31:56 -0700

rega: Fix allocation of multiple temporaries to the same register

Diffstat:
Mrega.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/rega.c b/rega.c @@ -605,6 +605,7 @@ rega(Fn *fn) if (x > 0 && !bshas(m->b, x)) { pmadd(TMP(x), TMP(r), tmp[t].cls); m->r[j] = x; + bsset(m->b, x); } } curi = &insb[NIns];