From a9bc0541b5e69f902758210eb3bfa275a53a07e0 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 5 Dec 2016 02:51:31 -0500 Subject: move some liveness code where it belongs --- live.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'live.c') diff --git a/live.c b/live.c index 09a4a25..be5ec8c 100644 --- a/live.c +++ b/live.c @@ -13,8 +13,10 @@ liveon(BSet *v, Blk *b, Blk *s) for (p=s->phi; p; p=p->link) for (a=0; anarg; a++) if (p->blk[a] == b) - if (rtype(p->arg[a]) == RTmp) + if (rtype(p->arg[a]) == RTmp) { bsset(v, p->arg[a].val); + bsset(b->gen, p->arg[a].val); + } } static int -- cgit 1.4.1