pytholite: prune unused registers
This commit is contained in:
parent
3fae6c8f03
commit
9c65402fda
|
@ -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())
|
||||||
|
|
Loading…
Reference in New Issue