phis can assign slots after spill
This commit is contained in:
parent
5873a7dc1e
commit
c6f3adc52d
1 changed files with 2 additions and 1 deletions
3
live.c
3
live.c
|
@ -8,7 +8,8 @@ liveon(BSet *v, Blk *b, Blk *s)
|
|||
|
||||
bscopy(v, s->in);
|
||||
for (p=s->phi; p; p=p->link)
|
||||
bsclr(v, p->to.val);
|
||||
if (rtype(p->to) == RTmp)
|
||||
bsclr(v, p->to.val);
|
||||
for (p=s->phi; p; p=p->link)
|
||||
for (a=0; a<p->narg; a++)
|
||||
if (p->blk[a] == b)
|
||||
|
|
Loading…
Add table
Reference in a new issue