[mlir][Linalg] Avoid collapsing dimensions of linalg op that arent foldable.
The collapsing dimensions transformation is limited to only those cases where the sequence of dimensions are contiguous in all the ranges of the indexing maps of the operation. Add this check before applying the transformation. Differential Revision: https://reviews.llvm.org/D150176
Loading
Please sign in to comment