Skip to content

[Codegen][NFC] Create tiling utilities file - #20961

Merged
hanhanW merged 3 commits into
iree-org:mainfrom
AaronStGeorge:stgeorge-aaron/cpu-tile-using-forall_1/4
Jun 4, 2025
Merged

hanhanW merged 3 commits into
iree-org:mainfrom
AaronStGeorge:stgeorge-aaron/cpu-tile-using-forall_1/4

Conversation

@AaronStGeorge

@AaronStGeorge AaronStGeorge commented May 30, 2025 •

Copy link
Copy Markdown
Contributor

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, this PR intrudes shared tiling utilities pulled out of TileDispatchUsingForall that will later be used in LLVMCPUTileRootAndFuseProducerConsumer.

PR 1/4 addressing #20792

This PR is part of a larger change moving
`LLVMCPUTileRootAndFuseProducerConsumer`'s tiling of parallel dimensions
to use `scf.forall` rather than `scf.for`. As part of that change, the
pass will also move to use shared tiling utilities pulled out of
`TileDispatchUsingForall` in this PR.

PR 1/4 addressing iree-org#20792
@AaronStGeorge
AaronStGeorge requested a review from hanhanW as a code owner May 30, 2025 19:35
@AaronStGeorge
AaronStGeorge requested review from hanhanW and pashu123 and removed request for hanhanW May 30, 2025 19:35

@pashu123 pashu123 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! I'll wait for @hanhanW review.

@hanhanW
hanhanW merged commit de5d41c into iree-org:main Jun 4, 2025
@AaronStGeorge
AaronStGeorge deleted the stgeorge-aaron/cpu-tile-using-forall_1/4 branch June 4, 2025 16:58
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, this PR intrudes shared tiling utilities pulled
out of `TileDispatchUsingForall` that will later be used in
`LLVMCPUTileRootAndFuseProducerConsumer`.

PR 1/4 addressing #20792
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.

3 participants