[Mlir-commits] [mlir] [mlir][Vector] Reuse args buffers in WarpOpToScfIfPattern (PR #204311)
Federico Bruzzone
llvmlistbot at llvm.org
Wed Oct 14 03:41:26 PDT 2026
================
@@ -297,10 +354,13 @@ struct WarpOpToScfIfPattern : public WarpDistributionPattern {
DistributedLoadStoreHelper helper(sequentialVal, distributedVal,
warpOp.getLaneid(), c0);
- // Create buffer before the ifOp.
+ // Reuse an args buffer if possible, otherwise allocate.
rewriter.setInsertionPoint(ifOp);
- Value buffer = options.warpAllocationFn(loc, rewriter, warpOp,
- sequentialVal.getType());
+ Value buffer = tryReuseArgBuffer(reusableArgBuffers,
----------------
FedericoBruzzone wrote:
It makes sense to me, but I'm not very familiar with this @edisongz :D
https://github.com/llvm/llvm-project/pull/204311
More information about the Mlir-commits
mailing list