Skip to content

feat[venom]: improve dload/mstore merging#4570

Merged
charles-cooper merged 29 commits intovyperlang:masterfrom
HodanPlodky:feat/venom/dload-mstore-update
Apr 28, 2025
Merged

feat[venom]: improve dload/mstore merging#4570
charles-cooper merged 29 commits intovyperlang:masterfrom
HodanPlodky:feat/venom/dload-mstore-update

Conversation

@HodanPlodky
Copy link
Copy Markdown
Collaborator

@HodanPlodky HodanPlodky commented Apr 10, 2025

What I did

How I did it

How to verify it

Commit message

this commit relaxes the merging criteria for `dload`/`mstore` for where
the output of `dload` is used the future. in these cases, the merge is
allowed, but an `mload` instruction is also inserted for future uses of
the value.

Description for the changelog

Cute Animal Picture

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

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.49%. Comparing base (642da76) to head (854e256).
⚠️ Report is 64 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4570      +/-   ##
==========================================
+ Coverage   92.43%   92.49%   +0.05%     
==========================================
  Files         127      127              
  Lines       18353    18371      +18     
  Branches     3178     3180       +2     
==========================================
+ Hits        16965    16992      +27     
+ Misses        947      939       -8     
+ Partials      441      440       -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@HodanPlodky HodanPlodky changed the title feat[venom]:dload mstore update feat[venom]: dload mstore update Apr 11, 2025
@HodanPlodky HodanPlodky marked this pull request as ready for review April 14, 2025 09:01
producer.make_nop()
self.updater.add_before(store, "dloadbytes", [IRLiteral(32), src, dst])
self.updater.update(store, "mload", [dst], new_output=producer.output)
self.updater.nop(producer, ignore_uses=True)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

i guess this is safe since we have temporarily taken the code out of SSA (on the previous line) right?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yes thats the idea

@charles-cooper charles-cooper changed the title feat[venom]: dload mstore update feat[venom]: improve dload/mstore merging Apr 28, 2025
@charles-cooper charles-cooper changed the title feat[venom]: improve dload/mstore merging feat[venom]: improve dload/mstore merging Apr 28, 2025
@charles-cooper charles-cooper enabled auto-merge (squash) April 28, 2025 10:41
Copy link
Copy Markdown
Member

@charles-cooper charles-cooper left a comment

Choose a reason for hiding this comment

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

thanks!

@charles-cooper charles-cooper merged commit 29dd745 into vyperlang:master Apr 28, 2025
164 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.

2 participants