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()
for register in registers:
register.finalize()
regf += register.get_fragment()
if register.source_encoding:
register.finalize()
regf += register.get_fragment()
fsm = implement_fsm(states)
fsmf = LowerAbstractLoad().visit(fsm.get_fragment())