Skip to content
Snippets Groups Projects
Commit 0c63d605 authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Minor bugfix.

parent d2d13e18
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ def eliminate_common_subexpressions(block):
occurrences.append(block.pointer - 1)
if len(occurrences) > 1:
new_reg = find_free_reg(block, pointer, occurrences[-1])
new_reg = find_free_reg(block, occurrences[0], occurrences[-1])
# Replace all occurrences with a move statement
for occurrence in occurrences:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment