Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat[venom]: reduce legacy opts when venom is enabled #4336

Merged

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented Oct 28, 2024

reduce legacy IR optimization when venom is enabled. the use of IRnode._optimized was there to decide if it was safe to inline an IRnode expression or it required a with statement; with venom, we don't need to inline the expressions, since the venom optimizer is more powerful. this leads to a 50% improvement in AST -> IRnode generation, which is a ~15% performance improvement in overall end-to-end compile time.

What I did

How I did it

How to verify it

run vyper --experimental-codegen and compare bytecode against master. should be the same.

Commit message

Commit message for the final, squashed PR. (Optional, but reviewers will appreciate it! Please see our commit message style guide for what we would ideally like to see in a commit message.)

Description for the changelog

Cute Animal Picture

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

reduce legacy IR optimization when venom is enabled. the use of
`IRnode._optimized` was there to decide if it was safe to inline an
IRnode expression or it required a `with` statement; with venom, we
don't need to inline the expressions, since the venom optimizer is more
powerful. this leads to a 50% improvement in AST -> IRnode generation,
which is a ~15% performance improvement in overall end-to-end compile
time.
@charles-cooper charles-cooper marked this pull request as ready for review October 28, 2024 01:29
@charles-cooper charles-cooper merged commit fcddb70 into vyperlang:master Oct 29, 2024
156 checks passed
@charles-cooper charles-cooper deleted the feat/legacy-performance branch October 29, 2024 13:33
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.

3 participants