Skip to content

Commit

Permalink
disable effects
Browse files Browse the repository at this point in the history
  • Loading branch information
harkal committed Oct 1, 2024
1 parent bdc1b4d commit 62616cd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions vyper/venom/passes/dft.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,10 @@ def _calculate_dependency_graphs(self, bb: IRBasicBlock) -> None:
for use in uses:
self.ida[use].append(inst)

if inst.is_volatile:
if inst.is_volatile or not uses:
#if terminator_inst.opcode in ["exit", "ret", "stop", "return", "jmp"]:
self.ida[inst].append(last_volatile)

if inst.is_volatile:
if last_volatile:
self.ida[inst].append(last_volatile)
last_volatile = inst

# read_effects = inst.get_read_effects()
Expand Down

0 comments on commit 62616cd

Please sign in to comment.