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

Support for multimasks in slot updates #2657

Merged
merged 5 commits into from
Dec 16, 2024

Conversation

PetarMax
Copy link
Contributor

@PetarMax PetarMax commented Nov 19, 2024

As observed in engagement code, the compiler can sometimes use a multi-mask (in this case, specifically 1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111000000000000000000000000000000001111111111111111111111111111111111111111000000000000000000000000000000001111111111111111111111111111111111111111) to presumably save an &Int in consecutive updates of the same storage slot. Previously, the automated slot updates could only handle masks with a single batch of zeros.

This PR generalises the slot updates to support multi-masks and adds an appropriate real-world test.

@PetarMax PetarMax self-assigned this Nov 19, 2024
@PetarMax PetarMax added the enhancement New feature or request label Nov 19, 2024
@PetarMax PetarMax requested a review from ehildenb November 19, 2024 13:18
@PetarMax PetarMax marked this pull request as ready for review December 16, 2024 16:20
@PetarMax PetarMax requested a review from anvacaru December 16, 2024 16:20
@automergerpr-permission-manager automergerpr-permission-manager bot merged commit 6cf2f54 into master Dec 16, 2024
12 checks passed
@automergerpr-permission-manager automergerpr-permission-manager bot deleted the petar/slot-updates-update branch December 16, 2024 19:23
anvacaru pushed a commit that referenced this pull request Dec 18, 2024
* support for multimasks

* syntax correction

* test correction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants