[Mlir-commits] [mlir] [MLIR][Linalg] pack, unpack to take memref inputs (PR #129036)

Han-Chung Wang llvmlistbot at llvm.org
Tue Apr 1 15:22:10 PDT 2025


================
@@ -5038,6 +5126,9 @@ struct FoldTensorCastPackOp : public OpRewritePattern<PackOp> {
     if (!tensor::hasFoldableTensorCastOperand(op))
       return failure();
 
+    if (!op.hasPureTensorSemantics())
----------------
hanhanW wrote:

Please add a TODO for memref. It is valid to fold memref.cast away as well.

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


More information about the Mlir-commits mailing list