fix phi handling in liveness

This commit is contained in:
Quentin Carbonneaux 2015-07-16 02:56:29 -04:00
parent d7548fa5d7
commit 395891e95c
3 changed files with 61 additions and 27 deletions

19
lisc/test/live.ssa Normal file
View file

@ -0,0 +1,19 @@
# this control flow graph is irreducible
# yet, we expecet the liveness analysis
# to work properly and make %x live in
# the block @left
#
# nothing should ever be live at the entry
@start
%b = copy 0
%x = copy 10
jez 0, @left, @loop
@left
jmp @inloop
@loop
%x1 = add %x, 1
@inloop
%b1 = add %b, 1
@endloop
jmp @loop