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

Han-Chung Wang llvmlistbot at llvm.org
Thu Apr 3 11:26:22 PDT 2025


================
@@ -5330,6 +5423,9 @@ struct FoldTensorCastUnPackOp : public OpRewritePattern<UnPackOp> {
     if (!tensor::hasFoldableTensorCastOperand(op))
       return failure();
 
+    if (!op.hasPureTensorSemantics())
+      return failure();
----------------
hanhanW wrote:

Let's add a TODO for consistency. It is a reasonable folder to me and we should support it (in follow-ups).

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


More information about the Mlir-commits mailing list