diff options
author | Michael Forney <mforney@mforney.org> | 2020-04-19 16:31:56 -0700 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2020-08-06 10:10:08 +0200 |
commit | 9639940cb46f0f8b5dcd872e99a9801df742f24c (patch) | |
tree | 24707d20506b2735421fc34d9f2446554e92f161 /rega.c | |
parent | 84f1e2950b3ab41523f25d205c99e9d8afd7ebba (diff) | |
download | roux-9639940cb46f0f8b5dcd872e99a9801df742f24c.tar.gz |
rega: Fix allocation of multiple temporaries to the same register
Diffstat (limited to 'rega.c')
-rw-r--r-- | rega.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/rega.c b/rega.c index ba405e5..7547293 100644 --- 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]; |