From dcf07ba55c437b892f4a73a8e513d7adacdf0e2b Mon Sep 17 00:00:00 2001
From: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Fri, 7 Aug 2015 19:53:46 -0400
Subject: [PATCH] minor change in rpo walking

---
 lisc/ssa.c | 4 ++--
 1 file 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;