pytholite: prune unused registers

This commit is contained in:
Sebastien Bourdeauducq 2012-12-19 16:03:05 +01:00
parent 3fae6c8f03
commit 9c65402fda
1 changed files with 3 additions and 2 deletions

View File

@ -237,8 +237,9 @@ def make_pytholite(func, **ioresources):
regf = Fragment() regf = Fragment()
for register in registers: for register in registers:
register.finalize() if register.source_encoding:
regf += register.get_fragment() register.finalize()
regf += register.get_fragment()
fsm = implement_fsm(states) fsm = implement_fsm(states)
fsmf = LowerAbstractLoad().visit(fsm.get_fragment()) fsmf = LowerAbstractLoad().visit(fsm.get_fragment())