Commit 2473f617 authored by Jayke Meijer's avatar Jayke Meijer

Made copy propagation work with proper mult structure.

parent e098d91c
...@@ -211,8 +211,9 @@ def copy_propagation(block): ...@@ -211,8 +211,9 @@ def copy_propagation(block):
if moves_to[i] == s[0]: if moves_to[i] == s[0]:
moves_from[i] = s[1] moves_from[i] = s[1]
break break
elif len(s) == 3 and (s[0] in moves_to or s[0] in moves_from): elif (len(s) == 3 or s.is_command('mlfo') or s.is_load()) \
# One of the registers getss overwritten, so remove the data from and (s[0] in moves_to or s[0] in moves_from):
# One of the registers gets overwritten, so remove the data from
# the list. # the list.
i = 0 i = 0
while i < len(moves_to): while i < len(moves_to):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment