[Mlir-commits] [mlir] [mlir][Linalg] Fix linalg.generic iteration domain collapse for dynamic dims (PR #118208)
Kunwar Grover
llvmlistbot at llvm.org
Sat Feb 8 16:40:06 PST 2025
================
@@ -1746,15 +1747,19 @@ FailureOr<CollapseResult> mlir::linalg::collapseOpIterationDims(
op.getIndexingMapMatchingResult(originalResult.value());
SmallVector<ReassociationIndices> reassociation =
getOperandReassociation(indexingMap, collapsingInfo);
+ SmallVector<OpFoldResult> resultShape =
+ applyPermutationMap(indexingMap, ArrayRef(loopBound));
----------------
Groverkss wrote:
IIUC, collapsing only works for projected permutations, so yes, we can assume that this map is a projected permutation. I added an assert anyway.
https://github.com/llvm/llvm-project/pull/118208
More information about the Mlir-commits
mailing list