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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant