rega: Fix allocation of multiple temporaries to the same register
This commit is contained in:
parent
84f1e2950b
commit
9639940cb4
1 changed files with 1 additions and 0 deletions
1
rega.c
1
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];
|
||||
|
|
Loading…
Add table
Reference in a new issue