summary refs log tree commit diff
path: root/live.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-12-05 02:51:31 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-12-05 02:51:31 -0500
commita9bc0541b5e69f902758210eb3bfa275a53a07e0 (patch)
treefd297a3afbea2605fdb40aa2f360ef8cc527e527 /live.c
parent8032339c59da9eb162fa735ed3c99c10dc0f8ce0 (diff)
downloadroux-a9bc0541b5e69f902758210eb3bfa275a53a07e0.tar.gz
move some liveness code where it belongs
Diffstat (limited to 'live.c')
-rw-r--r--live.c4
1 files changed, 3 insertions, 1 deletions
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; a<p->narg; 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