Reintroduced dead code elimination to CFA pass to avoid dataflow problems. Updated tests.

This commit is contained in:
Jon Riehl 2013-05-16 15:38:12 -05:00
commit c06f811473
3 changed files with 22 additions and 15 deletions

View file

@ -76,6 +76,7 @@ class ControlFlowBuilder (BenignBytecodeVisitorMixin, BasicBlockVisitor):
def exit_blocks (self, blocks):
super(ControlFlowBuilder, self).exit_blocks(blocks)
assert self.blocks == blocks
self.cfg.unlink_unreachables()
self.cfg.compute_dataflow()
self.cfg.update_for_ssa()
ret_val = self.cfg