Repository navigation
Conversation
This PR is part of a larger change moving `LLVMCPUTileRootAndFuseProducerConsumer`'s tiling of parallel dimensions to use `scf.forall` rather than `scf.for`; allowing us to take advantage of some canonicalization patterns available on scf.forall. The patterns available prevent redundant stack allocations seen in iree-org#20792. Tiling parallel dimensions with `scf.forall` rather than `scf.for` could also be said to be semantically cleaner. As part of that change, the pipeline will need to moved the tiled `scf.forall` back to a `scf.for` as later stages expect `scf.for`. This PR introduces a pass to do the conversion. PR 2/4 addressing iree-org#20792
pashu123
reviewed
May 30, 2025
pashu123
reviewed
May 30, 2025
pashu123
approved these changes
Jun 2, 2025
Co-authored-by: Prashant Kumar <[email protected]>
hanhanW
requested changes
Jun 4, 2025
Co-authored-by: Han-Chung Wang <[email protected]>
hanhanW
reviewed
Jun 4, 2025
hanhanW
approved these changes
Jun 4, 2025
hanhanW
enabled auto-merge (squash)
June 4, 2025 17:18
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
This PR is part of a larger change moving `LLVMCPUTileRootAndFuseProducerConsumer`'s tiling of parallel dimensions to use `scf.forall` rather than `scf.for`; allowing us to take advantage of some canonicalization patterns available on scf.forall. The patterns available prevent redundant stack allocations seen in #20792. Tiling parallel dimensions with `scf.forall` rather than `scf.for` could also be said to be semantically cleaner. As part of that change, the pipeline will need to moved the tiled `scf.forall` back to a `scf.for` as later stages expect `scf.for`. This PR introduces a pass to do the conversion. PR 2/4 addressing #20792 --------- Co-authored-by: Prashant Kumar <[email protected]> Co-authored-by: Han-Chung Wang <[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 is part of a larger change moving
LLVMCPUTileRootAndFuseProducerConsumer's tiling of parallel dimensions to usescf.forallrather thanscf.for; allowing us to take advantage of some canonicalization patterns available on scf.forall. The patterns available prevent redundant stack allocations seen in #20792. Tiling parallel dimensions withscf.forallrather thanscf.forcould also be said to be semantically cleaner.As part of that change, the pipeline will need to moved the tiled
scf.forallback to ascf.foras later stages expectscf.for. This PR introduces a pass to do the conversion.PR 2/4 addressing #20792