Skip to content

Commit

Permalink
refactor: remove unnecessary MIR optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-makerx committed Nov 8, 2024
1 parent bf52c36 commit eec0622
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/puya/mir/stack_allocation/peephole.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ def optimize_pair(
if not isinstance(a, mir.MemoryOp):
return None

if isinstance(b, mir.Pop) and b.n == 1 and isinstance(a, mir.LoadOp):
return ()

# optimization: cases after here are only applicable if "b" is a MemoryOp
if not isinstance(b, mir.MemoryOp):
return None
Expand Down

0 comments on commit eec0622

Please sign in to comment.