commit 3538e769a7f4ee2591cc4961aef9f35a02ae20a9
parent 4f9a5df76be7f900d4d8f25ade69478e03ec623c
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Tue, 21 Jul 2015 19:43:27 -0400
add a live-through temporary to test alt
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisc/test/alt.ssa b/lisc/test/alt.ssa
@@ -4,6 +4,7 @@
@start
%ten = copy 10
+ %dum = copy 0 # dummy live-through temprorary
@loop
%alt = phi @start 0, @left %alt1, @right %alt1
%cnt = phi @start 100, @left %cnt, @right %cnt2
@@ -19,6 +20,5 @@
%cnt2 = sub %cnt1, %ten
jez %cnt2, @end, @loop
@end
- %ret = copy %cnt # a dummy use, no return
- # values are available yet
+ %ret = add %cnt, %dum
ret