qbe

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

commit c6f3adc52d375d434e3dfd2d23056f0bfdbcdc67
parent 5873a7dc1e805b601c49f607fcb11692e3b5e74a
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Mon, 18 Apr 2016 13:54:17 -0400

phis can assign slots after spill

Diffstat:
Mlive.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/live.c b/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)