No need to keep track of equivalent extract_slice / insert_slice tensors during bufferization. Just emit a copy, it will fold away.
Note: The analysis still keeps track of equivalent tensors to make the correct inplace bufferization decisions.
Paths
| Differential D116684
[mlir][linalg][bufferize][NFC] Simplify InsertSliceOp bufferization ClosedPublic Authored by springerm on Jan 5 2022, 11:53 AM.
Details Summary No need to keep track of equivalent extract_slice / insert_slice tensors during bufferization. Just emit a copy, it will fold away. Note: The analysis still keeps track of equivalent tensors to make the correct inplace bufferization decisions.
Diff Detail
Event TimelineHerald added subscribers: sdasgup3, wenzhicui, wrengr and 21 others. · View Herald TranscriptJan 5 2022, 11:53 AM springerm added a child revision: D116685: [mlir][linalg][bufferize] Fix tiled_loop bufferization.Jan 5 2022, 11:54 AM This revision is now accepted and ready to land.Jan 6 2022, 12:13 AM Closed by commit rG0e5f258452b0: [mlir][linalg][bufferize][NFC] Simplify InsertSliceOp bufferization (authored by springerm). · Explain WhyJan 6 2022, 12:41 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 397654 mlir/include/mlir/Dialect/Linalg/ComprehensiveBufferize/TensorInterfaceImpl.h
mlir/lib/Dialect/Linalg/ComprehensiveBufferize/TensorInterfaceImpl.cpp
mlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferizePass.cpp
mlir/test/lib/Dialect/Linalg/TestComprehensiveBufferize.cpp
|