[Mlir-commits] [mlir] [mlir][tensor] Improve `FoldTensorCastProducerOp` (dynamic shapes) (PR #114559)
Andrzej Warzyński
llvmlistbot at llvm.org
Mon Nov 4 11:05:07 PST 2024
================
@@ -4756,8 +4756,50 @@ struct FoldTensorCastProducerOp
newResultTypes[dpsInitIdx++] = newOperands.back().getType();
}
- // Clone op.
- Operation *newOp = clone(rewriter, op, newResultTypes, newOperands);
+ // For ops that have sizes-like attribute, update these accordingly.
+ // For now, only `tensor.pack` is supported.
+ // TODO: Generalize to make it work with other ops as well (e.g.
+ // `tensor.unpack`)
+ SmallVector<OpFoldResult> newMixedTileSizes;
----------------
banach-space wrote:
👍🏻 Updated, let me know whether that's what you had in mind.
https://github.com/llvm/llvm-project/pull/114559
More information about the Mlir-commits
mailing list