Fix memcpyopt to allow multiple passes of optimisations#7657
Conversation
77233e1 to
cac6c9c
Compare
|
@cursor BugBot run |
|
Here's my BugBot analysis of PR #7657: CI Status: All green. 34 checks passed, 0 failed. The only pending item is Local Build & Test Results:
Code Review Summary: The changes are sound. The two key modifications are:
No bugs or issues found. The PR is ready for human review/approval. |
|
👍 |
ironcev
left a comment
There was a problem hiding this comment.
Great to see those gas reductions in tests :-) Two nitpicks in comments for retaining initial clarity, otherwise 👍 👍


Description
This PR is another prelude to #7646.
We discovered that
memcpyoptdoes not work when we run it multiple times. The cause is that we bail the optimisation when a symbol has more than one write. This is correct, but we were only considering 'store'.Now we are correctly also considering all other ways to write into "symbols".
Checklist
Breaking*orNew Featurelabels where relevant.