Infer a tighter MemRef type instead of always falling back to the most dynamic MemRef type. This is inefficient and caused op verification errors.
Depends On D122647
Paths
| Differential D122649
[mlir][tensor] Fix bufferization of CollapseShapeOp / ExpandShapeOp ClosedPublic Authored by springerm on Mar 29 2022, 5:54 AM.
Details Summary Infer a tighter MemRef type instead of always falling back to the most dynamic MemRef type. This is inefficient and caused op verification errors. Depends On D122647
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Mar 30 2022, 12:48 AM tpopp added inline comments. springerm added inline comments. Closed by commit rG51df62388e83: [mlir][tensor] Fix bufferization of CollapseShapeOp / ExpandShapeOp (authored by springerm). · Explain WhyMar 31 2022, 1:12 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 419358 mlir/lib/Dialect/Tensor/Transforms/BufferizableOpInterfaceImpl.cpp
mlir/test/Dialect/Tensor/bufferize.mlir
|
Nit: seems like formatting with tabs