Skip to content

Commit

Permalink
better phi fixing (lint)
Browse files Browse the repository at this point in the history
  • Loading branch information
HodanPlodky committed Sep 2, 2024
1 parent 37dc99d commit 4bd7fb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vyper/venom/passes/sccp/sccp.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ def _fix_phi_bb_r(self, bb: IRBasicBlock, visited: OrderedSet[IRBasicBlock]):

visited.add(bb)

for bb in bb.cfg_out:
return self._fix_phi_bb_r(bb, visited)
for next_bb in bb.cfg_out:
self._fix_phi_bb_r(next_bb, visited)

def _fix_phi_node_inst(self, phi_inst: IRInstruction):
if len(phi_inst.parent.cfg_in) != 1:
Expand Down

0 comments on commit 4bd7fb7

Please sign in to comment.