Skip to content

Commit 213917b

Browse files
[mlir][bufferization] Remove buffer-deallocation pass (#126366)
The `-buffer-deallocation` pass is not compatible with One-Shot Bufferize and has been replaced with the Ownership-based Buffer Deallocation pass about 1.5 years ago. To clean up the code base, this commit removes the deprecated `buffer-deallocation` pass. All uses of this deprecated pass within MLIR have already been migrated. Note for LLVM integration: If you depend on this pass, migrate to the Ownership-based Buffer Deallocation pass or copy the pass to your codebase. For details, see https://discourse.llvm.org/t/psa-bufferization-new-buffer-deallocation-pipeline/73375.
1 parent 9b2fc66 commit 213917b

File tree

13 files changed

+6
-5687
lines changed

13 files changed

+6
-5687
lines changed

mlir/docs/BufferDeallocationInternals.md

Lines changed: 0 additions & 705 deletions
This file was deleted.

mlir/docs/OwnershipBasedBufferDeallocation.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
One-Shot Bufferize does not deallocate any buffers that it allocates. After
66
running One-Shot Bufferize, the resulting IR may have a number of `memref.alloc`
77
ops, but no `memref.dealloc` ops. Buffer dellocation is delegated to the
8-
`-ownership-based-buffer-deallocation` pass. This pass supersedes the now
9-
deprecated `-buffer-deallocation` pass, which does not work well with
10-
One-Shot Bufferize.
8+
`-ownership-based-buffer-deallocation` pass.
119

1210
On a high level, buffers are "owned" by a basic block. Ownership materializes
1311
as an `i1` SSA value and can be thought of as "responsibility to deallocate". It

0 commit comments

Comments
 (0)