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

Removed useless deepcopy.

parent 69c93ff8
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
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