Repository navigation
Add support for dynamic unit trip scf.for to scf.if - #20880
Merged
nirvedhmeshram merged 2 commits intoMay 27, 2025
Merged
Conversation
nirvedhmeshram
force-pushed
the
remove_dynamic_unit_trip_pr
branch
2 times, most recently
from
May 22, 2025 17:21
2177485 to
c6013f1
Compare
nirvedhmeshram
marked this pull request as ready for review
May 22, 2025 17:21
nirvedhmeshram
requested review from
MaheshRavishankar and
hanhanW
as code owners
May 22, 2025 17:21
nirvedhmeshram
force-pushed
the
remove_dynamic_unit_trip_pr
branch
2 times, most recently
from
May 22, 2025 17:27
08898b8 to
7d50263
Compare
Signed-off-by: Nirvedh Meshram <[email protected]>
Max191
approved these changes
May 22, 2025
jerryyin
approved these changes
May 22, 2025
Signed-off-by: Nirvedh Meshram <[email protected]>
nirvedhmeshram
commented
May 27, 2025
|
|
||
| // Tile and distribute to GPU subgroups. | ||
| funcPassManager.addPass(createSPIRVTileToCooperativeOpsPass()); | ||
| funcPassManager.addPass(createPropagateDispatchSizeBoundsPass()); |
Contributor
Author
There was a problem hiding this comment.
This is needed because createSPIRVTileToCooperativeOpsPass will make new bounds on thread.ids and we need those for createRemoveSingleIterationLoopPass to do the right thing.
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
This PR adds support for dynamic unit trip (0 or 1 trip) scf.for using scf.if. --------- Signed-off-by: Nirvedh Meshram <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds support for dynamic unit trip (0 or 1 trip) scf.for using scf.if. Additionally, the existing implementation was conservative in testing the neverRunsSecondIteration logic, by only looking at upper bound and step value, but we can find a better check by taking the lower bound into consideration.