Support buffers in LinalgFoldUnitExtentDims
authorTres Popp <tpopp@google.com>
Wed, 2 Jun 2021 11:29:43 +0000 (13:29 +0200)
committerTres Popp <tpopp@google.com>
Tue, 15 Jun 2021 06:22:22 +0000 (08:22 +0200)
commit6c7be4176703fff69d20acc466a879e080346f30
tree49b2a603a89c3908d5f3c964e55619a428950df2
parentd8c5a4d6b6efad405c71ead8997276d8d3a7c5ad
Support buffers in LinalgFoldUnitExtentDims

This doesn't add any canonicalizations, but executes the same
simplification on bufferSemantic linalg.generic ops by using
linalg::ReshapeOp instead of linalg::TensorReshapeOp.

Differential Revision: https://reviews.llvm.org/D103513
mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
mlir/test/Dialect/Linalg/drop-unit-extent-dims.mlir