A sequence of two reshapes such that one of them is just adding unit
extent dims can be folded to a single reshape.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D88057
[mlir][Linalg] Add pattern to fold linalg.tensor_reshape that add unit extent dims. ClosedPublic Authored by mravishankar on Sep 21 2020, 4:40 PM.
Details Summary A sequence of two reshapes such that one of them is just adding unit
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Sep 22 2020, 3:33 AM This revision was landed with ongoing or failed builds.Sep 23 2020, 12:02 AM Closed by commit rGb62f9f4407a5: [mlir][Linalg] Add pattern to fold linalg.tensor_reshape that add unit extent… (authored by mravishankar). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 293658 mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
mlir/test/Dialect/Linalg/drop-unit-extent-dims.mlir
|
Can use rewriter.getAffineDimExpr(...).