Files
clang-p2996/mlir/lib/Dialect/Bufferization/IR/BufferizationOps.cpp
Martin Erhart b0688ed0dc [mlir][bufferization] Add DeallocOp canonicalizer to remove memrefs also present in the retained list
Since memrefs in the retained list will never be deallocated, we can remove them from the list of memrefs to be deallocated. If the list of memrefs to deallocate becomes empty, we can just delete the dealloc operation.

Reviewed By: springerm

Differential Revision: https://reviews.llvm.org/D156186
2023-07-28 16:41:03 +00:00

33 KiB