summary refs log tree commit diff
path: root/lisc/test
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-07-22 04:52:40 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:28 -0400
commitb35a7d2acdd53c8ea8e2a888b71cf734aab23c8c (patch)
tree87cd415865793a5a8b96ca8e6aaca192fe5faf18 /lisc/test
parent890c0ada0e093209ba5e25fff730409d5517ead2 (diff)
downloadroux-b35a7d2acdd53c8ea8e2a888b71cf734aab23c8c.tar.gz
alt.ssa was in buggy ssa form
Diffstat (limited to 'lisc/test')
-rw-r--r--lisc/test/alt.ssa7
1 files changed, 3 insertions, 4 deletions
diff --git a/lisc/test/alt.ssa b/lisc/test/alt.ssa
index 5137fd1..6967785 100644
--- a/lisc/test/alt.ssa
+++ b/lisc/test/alt.ssa
@@ -7,7 +7,7 @@
 	%dum = copy 0  # dummy live-through temprorary
 @loop
 	%alt = phi @start 0, @left %alt1, @right %alt1
-	%cnt = phi @start 100, @left %cnt, @right %cnt2
+	%cnt = phi @start 100, @left %cnt, @right %cnt1
 	%alt1 = sub 1, %alt
 	jez %alt1, @left, @right
 @left
@@ -16,9 +16,8 @@
 	%z = copy %x
 	jez %z, @loop, @left
 @right
-	%cnt1 = phi @loop %cnt, @right %cnt2
-	%cnt2 = sub %cnt1, %ten
-	jez %cnt2, @end, @loop
+	%cnt1 = sub %cnt, %ten
+	jez %cnt1, @end, @loop
 @end
 	%ret = add %cnt, %dum
 	ret