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

fix[venom]: add unique_symbols check to venom pipeline #4149

Merged

Conversation

charles-cooper
Copy link
Member

@charles-cooper charles-cooper commented Jun 14, 2024

What I did

fix #4072

How I did it

How to verify it

Commit message

when `-Onone` is specified along with `--experimental-codegen`,
the unique symbols check does not get run. this calculates the
`ir_node.unique_symbols` property, which implicitly runs the unique
symbols check.

also, change an assertion to a proper panic exception

Description for the changelog

Cute Animal Picture

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

when `-Onone` is specified along with `--experimental-codegen`, the
unique symbols check does not get run. this calculates the
`ir_node.unique_symbols` property, which implicitly runs the unique
symbols check.
Copy link

codecov bot commented Jun 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.35%. Comparing base (c79c0b6) to head (bbb89df).

Current head bbb89df differs from pull request most recent head dfe0040

Please upload reports for the commit dfe0040 to get more accurate results.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4149      +/-   ##
==========================================
- Coverage   91.32%   90.35%   -0.97%     
==========================================
  Files         109      109              
  Lines       15569    15555      -14     
  Branches     3418     3415       -3     
==========================================
- Hits        14218    14055     -163     
- Misses        923     1040     +117     
- Partials      428      460      +32     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@charles-cooper charles-cooper changed the title add unique symbols check to venom pipeline fix[venom]: add unique_symbols check to venom pipeline Jun 14, 2024
@charles-cooper charles-cooper marked this pull request as ready for review June 14, 2024 15:10
@@ -114,6 +114,8 @@

# convert IRnode directly to venom
def ir_node_to_venom(ir: IRnode) -> IRContext:
_ = ir.unique_symbols # run unique symbols check
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems rather strange at a quick glance

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unique_symbols performs a sanity check

@charles-cooper charles-cooper enabled auto-merge (squash) June 17, 2024 21:06
@charles-cooper charles-cooper merged commit a72488c into vyperlang:master Jun 17, 2024
156 checks passed
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.

Double Eval in experimental codegen without optimization
2 participants