summary refs log tree commit diff
path: root/lisc/ssa.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-07-15 18:01:38 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:28 -0400
commitd7548fa5d7c6ab4adaff87619e9801d0bdb07b55 (patch)
tree1720934ebd2ac97584a55f3377126d3eab5d6ad8 /lisc/ssa.c
parent58bd1de2647d8a7acd0e8edb4ec2bfb9f99799a6 (diff)
downloadroux-d7548fa5d7c6ab4adaff87619e9801d0bdb07b55.tar.gz
add rpo test and some liveness code
Diffstat (limited to 'lisc/ssa.c')
-rw-r--r--lisc/ssa.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisc/ssa.c b/lisc/ssa.c
index c08d6b1..c4710f6 100644
--- a/lisc/ssa.c
+++ b/lisc/ssa.c
@@ -46,6 +46,7 @@ rporec(Blk *b, int x)
 {
 	if (b->id >= 0)
 		return x;
+	b->id = 1;
 	if (b->s1)
 		x = rporec(b->s1, x);
 	if (b->s2)