[Mlir-commits] [mlir] [mlir][bufferization] Fix crash when returning an allocation twice (PR #220232)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Tue Sep 1 19:00:38 PDT 2026
================
@@ -168,7 +168,20 @@ updateReturnOps(func::FuncOp func, ArrayRef<BlockArgument> appendedEntryArgs,
}
OpBuilder builder(op);
SmallVector<SmallVector<Value>> dynamicSizes;
+ SetVector<Operation *> toErase;
+ DenseMap<Value, BlockArgument> primaryArgs;
+ DenseMap<Value, SmallVector<Value>> dynSizes;
----------------
AkunCube wrote:
Renamed `dynSizes` to `dynamicSizesCache`. The cache stores dynamic sizes by returned memref, while `dynamicSizes` contains one entry for each result occurrence, including duplicates.
https://github.com/llvm/llvm-project/pull/220232
More information about the Mlir-commits
mailing list