Skip to content

Commit

Permalink
fix the condition to allow full overlap to become mcopy
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-cooper committed Oct 2, 2023
1 parent 5580e98 commit 066f212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vyper/ir/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def _merge_load(argz, _LOAD, _COPY, allow_overlap=True):
idx = i

# dst and src overlap, discontinue the optimization
has_overlap = initial_src_offset <= initial_dst_offset <= src_offset + 31
has_overlap = initial_src_offset < initial_dst_offset < src_offset + 32

if (
initial_dst_offset + total_length == dst_offset
Expand Down

0 comments on commit 066f212

Please sign in to comment.