Skip to content
Snippets Groups Projects
Commit 8dfef611 authored by Jayke Meijer's avatar Jayke Meijer
Browse files

Fixed two bugs in copyprop.

parent 55c2f6c7
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,8 @@ from dataflow import find_basic_blocks
from standard import redundant_move_1, redundant_move_2, \
redundant_move_3, redundant_move_4, redundant_load, \
redundant_shift, redundant_add
from advanced import eliminate_common_subexpressions, fold_constants
from advanced import eliminate_common_subexpressions, fold_constants, \
copy_propagation
def optimize_global(statements):
......
......@@ -108,4 +108,4 @@ def copy_propagation(block):
count += 1
print "count", count
return false
return False
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