[Mlir-commits] [mlir] [MLIR][buffer-deallocation] Introduce copies only for MemRef typed values. (PR #121582)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Mon Jan 13 06:28:08 PST 2025


================
@@ -308,6 +308,9 @@ class BufferDeallocation : public BufferPlacementTransformationBase {
 
     // Add new allocs and additional clone operations.
     for (Value value : valuesToFree) {
+      if (!isa<BaseMemRefType>(value.getType())) {
----------------
erick-xanadu wrote:

https://github.com/llvm/llvm-project/pull/121582/commits/4b5db41a84bd325c31c632bd24e29d3d197998a7

https://github.com/llvm/llvm-project/pull/121582


More information about the Mlir-commits mailing list