summary refs log tree commit diff
path: root/lisc/ssa.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-08-07 19:53:46 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:30 -0400
commitdcf07ba55c437b892f4a73a8e513d7adacdf0e2b (patch)
treee01bb2556f9cba67ddedf3bb8149fb2aca3524bf /lisc/ssa.c
parent75eb0c32248ddad6c8c26637c58d9a50aa619a2d (diff)
downloadroux-dcf07ba55c437b892f4a73a8e513d7adacdf0e2b.tar.gz
minor change in rpo walking
Diffstat (limited to 'lisc/ssa.c')
-rw-r--r--lisc/ssa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisc/ssa.c b/lisc/ssa.c
index 0980de4..4bf6c46 100644
--- a/lisc/ssa.c
+++ b/lisc/ssa.c
@@ -47,10 +47,10 @@ 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)
 		x = rporec(b->s2, x);
+	if (b->s1)
+		x = rporec(b->s1, x);
 	b->id = x;
 	assert(x >= 0);
 	return x - 1;