Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix[venom]: fix unused variables pass #4259

Merged

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented Sep 25, 2024

it corrupts the DFG. to see the bug before this commit, add another StoreEliminationPass after RemoveUnusedVariablesPass.

What I did

How I did it

How to verify it

Commit message

it corrupts the DFG. to see the bug before this commit, add another
`StoreEliminationPass` after `RemoveUnusedVariablesPass`.

this commit invalidates the DFG after removing unused variables.

Description for the changelog

Cute Animal Picture

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

it corrupts the DFG. to see the bug before this commit, add another
StoreEliminationPass after RemoveUnusedVariablesPass.
@charles-cooper
Copy link
Member Author

@harkal should we just invalidate the dfg instead?

@charles-cooper charles-cooper marked this pull request as ready for review September 26, 2024 13:14
@charles-cooper charles-cooper changed the title fix unused variables pass fix[venom]: fix unused variables pass Oct 13, 2024
@charles-cooper charles-cooper enabled auto-merge (squash) October 13, 2024 19:30
@charles-cooper charles-cooper merged commit 6606ded into vyperlang:master Oct 13, 2024
156 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants