Skip to content

Commit

Permalink
add review
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Nov 23, 2023
1 parent 0eabd92 commit 29ab92b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vyper/venom/passes/normalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def _run_pass(self, ctx: IRFunction) -> int:
self.dfg = DFG.build_dfg(ctx)
self.changes = 0

# REVIEW: maybe we can avoid `.cfg_dirty` machinery if we
# just recalculate the cfg every time here. is there a performance
# consideration?
# Calculate control flow graph if needed
if ctx.cfg_dirty:
calculate_cfg(ctx)
Expand Down

0 comments on commit 29ab92b

Please sign in to comment.