You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After generating the LLL, look for sequential zero-value memory assignments or calldatacopy actions and merge them into a single calldatacopy.
It might also be possible to mutate the AST by moving all the AnnAssign nodes to the top of the function body (if the right-hand-side is a zero value).
The text was updated successfully, but these errors were encountered:
Description
A common pattern I use is to declare multiple memory variables with zero-values at the beginning of a function. For example:
These intializations produce the following LLL:
Which could be optimized to:
How to Implement
AnnAssign
nodes to the top of the function body (if the right-hand-side is a zero value).The text was updated successfully, but these errors were encountered: