[Mlir-commits] [mlir] [mlir][Linalg] Fix linalg.generic iteration domain collapse for dynamic dims (PR #118208)

Quinn Dawkins llvmlistbot at llvm.org
Mon Dec 9 09:50:05 PST 2024


================
@@ -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));
----------------
qedawkins wrote:

Is there verification that the indexing map is a projected permutation here?

https://github.com/llvm/llvm-project/pull/118208


More information about the Mlir-commits mailing list