Commit edc801b4 authored by Taddeus Kroes's avatar Taddeus Kroes

Removed useless deepcopy.

parent 69c93ff8
......@@ -53,13 +53,11 @@ def optimize_block(block):
#print 'iteration'
pass
from copy import deepcopy
def optimize(statements, verbose=0):
"""Optimization wrapper function, calls global and basic-block level
optimization functions."""
# Optimize on a global level
# TODO: only count instructions (no directives)
statements = deepcopy(statements)
o = len(statements)
remove_redundant_jumps(statements)
g = len(statements)
......
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