Commit edc801b4 authored by Taddeus Kroes's avatar Taddeus Kroes

Removed useless deepcopy.

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