[Mlir-commits] [mlir] [MLIR] Fix a crash in CollapseLinalgDimensions (PR #181715)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Feb 16 12:53:32 PST 2026
================
@@ -1348,6 +1348,10 @@ bool mlir::linalg::isDimSequencePreserved(AffineMap indexingMap,
bool mlir::linalg::areDimSequencesPreserved(
ArrayRef<AffineMap> maps, ArrayRef<ReassociationIndices> dimSequences) {
return llvm::all_of(maps, [&](AffineMap map) {
+ // Dimension sequences can only be preserved in projected permutation maps.
+ if (!map.isProjectedPermutation()) {
----------------
MaheshRavishankar wrote:
Move this check into `isDimSequencesPreserved` and return false there?
https://github.com/llvm/llvm-project/pull/181715
More information about the Mlir-commits
mailing list