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

[triton-raise-block-ptr]: Loop Specialization #3476

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

etiotto
Copy link
Contributor

@etiotto etiotto commented Feb 20, 2025

When a scf.for loop contains masked loads with a mask that evaluates to true for the entire loop iteration, the loop is versioned using a simplified mask condition (that is loop invariant). The loads in the loop that executes when the versioning condition evaluates to true are transformed into unmasked loads and furthermore changed into loads that operate on block pointers.

@etiotto etiotto self-assigned this Feb 20, 2025
@etiotto etiotto linked an issue Feb 20, 2025 that may be closed by this pull request
@etiotto etiotto marked this pull request as ready for review February 21, 2025 15:09
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.

[TRITON-RAISE-BP]: Version loop containing masked loads
1 participant