make sure non-register temporaries get a slot
Inside the main instruction-processing loop, it is taken care of by limit. However at block boundaries we are doing fancy bitset operations without calling limit.
This commit is contained in:
parent
98c9cf29d3
commit
5873a7dc1e
1 changed files with 3 additions and 0 deletions
3
spill.c
3
spill.c
|
@ -391,6 +391,9 @@ spill(Fn *fn)
|
|||
r = retregs(b->jmp.arg, 0);
|
||||
v->t[0] |= r;
|
||||
}
|
||||
for (t=Tmp0; bsiter(b->out, &t); t++)
|
||||
if (!bshas(v, t))
|
||||
slot(t);
|
||||
bscopy(b->out, v);
|
||||
|
||||
/* 2. process the block instructions */
|
||||
|
|
Loading…
Add table
Reference in a new issue