Repository navigation
[Codegen] Harden yielding logic in TileDispatchUsingForall - #19212
Merged
qedawkins merged 2 commits intoNov 21, 2024
Merged
Conversation
Contributor
Author
|
fixes #19189 |
pashu123
approved these changes
Nov 21, 2024
qedawkins
force-pushed
the
harden_yield_and_do_producer_fusion
branch
from
November 21, 2024 16:07
6ba2b2b to
8b556cf
Compare
qedawkins
requested review from
benvanik,
kuhar and
stellaraccident
as code owners
November 21, 2024 16:07
qedawkins
commented
Nov 21, 2024
Currently the TileDispatchUsingForall pass chooses to yield replacements for fused producers based on dominance relative to the tiling root. Now that this pass includes consumer fusion, this can create situations where a single operation is consuming two loop yielded values, blocking fusion. This patch disables yielding of values when there is more than one tilable consumer. As a result, it's common to have remaining producer fusion opportunities after fusing in consumers, so we add another iteration of producer fusion. In the future the fusion worklist needs to include both producer and consumer fusions to enable covering all cases.
qedawkins
force-pushed
the
harden_yield_and_do_producer_fusion
branch
from
November 21, 2024 16:09
8b556cf to
78fd00f
Compare
Groverkss
pushed a commit
to Groverkss/iree
that referenced
this pull request
Dec 1, 2024
…19212) Currently the TileDispatchUsingForall pass chooses to yield replacements for fused producers based on dominance relative to the tiling root. Now that this pass includes consumer fusion, this can create situations where a single operation is consuming two loop yielded values, blocking fusion. This patch disables yielding of values when there is more than one tilable consumer. As a result, it's common to have remaining producer fusion opportunities after fusing in consumers, so we add another iteration of producer fusion. In the future the fusion worklist needs to include both producer and consumer fusions to enable covering all cases.
giacs-epic
pushed a commit
to giacs-epic/iree
that referenced
this pull request
Dec 4, 2024
…19212) Currently the TileDispatchUsingForall pass chooses to yield replacements for fused producers based on dominance relative to the tiling root. Now that this pass includes consumer fusion, this can create situations where a single operation is consuming two loop yielded values, blocking fusion. This patch disables yielding of values when there is more than one tilable consumer. As a result, it's common to have remaining producer fusion opportunities after fusing in consumers, so we add another iteration of producer fusion. In the future the fusion worklist needs to include both producer and consumer fusions to enable covering all cases. Signed-off-by: Giacomo Serafini <[email protected]>
pashu123
added a commit
to pashu123/iree
that referenced
this pull request
Jan 27, 2025
The implementation is borrowed from iree-org#19212
pashu123
added a commit
to pashu123/iree
that referenced
this pull request
Jan 27, 2025
The implementation is borrowed from iree-org#19212
pashu123
added a commit
to pashu123/iree
that referenced
this pull request
Jan 27, 2025
The implementation is borrowed from iree-org#19212
pashu123
added a commit
to pashu123/iree
that referenced
this pull request
Jan 27, 2025
The implementation is borrowed from iree-org#19212
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.
Currently the TileDispatchUsingForall pass chooses to yield replacements for fused producers based on dominance relative to the tiling root. Now that this pass includes consumer fusion, this can create situations where a single operation is consuming two loop yielded values, blocking fusion.
This patch disables yielding of values when there is more than one tilable consumer. As a result, it's common to have remaining producer fusion opportunities after fusing in consumers, so we add another iteration of producer fusion. In the future the fusion worklist needs to include both producer and consumer fusions to enable covering all cases.