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

Removed old DCE function.

parent 0bb1771f
No related branches found
No related tags found
No related merge requests found
......@@ -412,26 +412,6 @@ def eliminate_dead_code(block):
changed = True
#unused = set()
#for s in reversed(block):
# for reg in s.get_def():
# if reg in unused:
# # Statement is redefined later, so this statement is useless
# if block.debug:
# s.stype = 'comment'
# s.options['block'] = False
# s.name = ' Dead:\t%s\t%s' \
# % (s.name, ','.join(map(str, s)))
# else:
# s.remove = True
# changed = True
# else:
# unused.add(reg)
# unused -= set(s.get_use())
if not block.debug:
block.apply_filter(lambda s: not hasattr(s, 'remove'))
......
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