Reintroduced dead code elimination to CFA pass to avoid dataflow problems. Updated tests.
This commit is contained in:
parent
c5d95e01e1
commit
c06f811473
3 changed files with 22 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue