1
0
mirror of synced 2024-11-12 01:00:46 +01:00

Add future enhancement TODO to decompiler optimizer.

This commit is contained in:
Jennifer Taylor 2021-07-15 00:15:14 +00:00
parent 392a5e5133
commit 244f54d93f

View File

@ -3858,6 +3858,14 @@ class ByteCodeDecompiler(VerboseOutput):
self.__eliminate_unused_labels,
]
# TODO: The bytecode compiler that was used in Bishi seems to like using
# registers as temporary storage for variables in a lot of cases. We should
# be able to track register assignment and use and see if there is only one
# use/assignment of a register after all other optimization passes are done.
# If this is the case, we should be able to substitute the original assignment
# for the register when used, and get rid of the assignment altogether. This
# should slightly clean up a fair bit of code.
while True:
self.vprint("Running optimizer pass...")
any_changed = False