Skip to content

Commit

Permalink
upgrade to latest effects lib
Browse files Browse the repository at this point in the history
  • Loading branch information
harkal committed Oct 29, 2024
1 parent 4834318 commit 729bd19
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vyper/venom/passes/load_elimination.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from vyper.venom.effects import Effects
from vyper.venom.analysis import DFGAnalysis, LivenessAnalysis, VarEquivalenceAnalysis
from vyper.venom.passes.base_pass import IRPass

Expand Down Expand Up @@ -27,11 +28,11 @@ def _process_bb(self, bb):
memory = ()

for inst in bb.instructions:
if "memory" in inst.get_write_effects():
if Effects.MEMORY in inst.get_write_effects():
memory = ()
if "storage" in inst.get_write_effects():
if Effects.STORAGE in inst.get_write_effects():
storage = ()
if "transient" in inst.get_write_effects():
if Effects.TRANSIENT in inst.get_write_effects():
transient = ()

if inst.opcode == "mstore":
Expand Down

0 comments on commit 729bd19

Please sign in to comment.