Repository navigation
[Codegen] Fix dominance issue in collapse shape fusion - #20864
Merged
Merged
Conversation
jtuyls
requested review from
MaheshRavishankar,
antiagainst and
qedawkins
as code owners
May 20, 2025 13:41
Signed-off-by: Jorn Tuyls <[email protected]>
jtuyls
force-pushed
the
fix-fuse-and-hoist-forall
branch
from
May 20, 2025 13:41
8934463 to
7703f61
Compare
jtuyls
requested review from
Max191,
hanhanW and
qedawkins
and removed request for
MaheshRavishankar,
antiagainst and
qedawkins
May 20, 2025 13:42
qedawkins
approved these changes
May 20, 2025
ziereis
pushed a commit
to ziereis/iree
that referenced
this pull request
May 22, 2025
In fusion of consumer `tensor.collapse_shape` operations into `scf.forall`, there is a potential dominance issue if the `tensor.parallel_insert_slice` operation depends on both a BlockArgument and an affine expression on the same BlockArgument (in this order). This lead to the following error for the added test: ``` ... error: operand #1 does not dominate this use %2 = affine.apply #map(%arg4) ... ``` Signed-off-by: Jorn Tuyls <[email protected]> Signed-off-by: Thomas Ziereis <[email protected]>
AWoloszyn
pushed a commit
that referenced
this pull request
Dec 1, 2025
In fusion of consumer `tensor.collapse_shape` operations into `scf.forall`, there is a potential dominance issue if the `tensor.parallel_insert_slice` operation depends on both a BlockArgument and an affine expression on the same BlockArgument (in this order). This lead to the following error for the added test: ``` ... error: operand #1 does not dominate this use %2 = affine.apply #map(%arg4) ... ``` Signed-off-by: Jorn Tuyls <[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.
In fusion of consumer
tensor.collapse_shapeoperations intoscf.forall, there is a potential dominance issue if thetensor.parallel_insert_sliceoperation depends on both a BlockArgument and an affine expression on the same BlockArgument (in this order). This lead to the following error for the added test: