Skip to content

feat[venom]: remove special cases in store elimination#4413

Merged
charles-cooper merged 2 commits intovyperlang:masterfrom
charles-cooper:feat/venom/addl-store-elim
Dec 20, 2024
Merged

feat[venom]: remove special cases in store elimination#4413
charles-cooper merged 2 commits intovyperlang:masterfrom
charles-cooper:feat/venom/addl-store-elim

Conversation

@charles-cooper
Copy link
Copy Markdown
Member

@charles-cooper charles-cooper commented Dec 19, 2024

What I did

How I did it

How to verify it

Commit message

remove special cases in store elimination, allowing elimination of
`%ret_ofst` and `%ret_size` store chains. this was previously to
protect correctness in `mem2var`, but it no longer seems to be needed.

running an additional store elimination before `mem2var` results in a
slight bytecode size improvement, since it allows more memory locations
to be promoted to stack variables.

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

remove special cases in store elimination, allowing elimination of
%ret_ofst and %ret_size store chain. this was previously to protect
correctness in `mem2var`, but it no longer seems to be needed.

running an additional store elimination before `mem2var` results in a
slight bytecode size improvement, since it allows more memory locations
to be promoted to stack variables.
@charles-cooper charles-cooper merged commit 9ff9080 into vyperlang:master Dec 20, 2024
@charles-cooper charles-cooper deleted the feat/venom/addl-store-elim branch December 20, 2024 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants