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

Matthias Springer llvmlistbot at llvm.org
Wed Jan 15 00:20:05 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())) {
----------------
matthias-springer wrote:

I'm not too familiar with this pass unfortunately...

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


More information about the Mlir-commits mailing list