[Mlir-commits] [mlir] [mlir][linalg] Restrict linalg.pack to not have artificial padding. (PR #149624)

Han-Chung Wang llvmlistbot at llvm.org
Tue Jul 22 11:46:23 PDT 2025


================
@@ -220,6 +243,29 @@ struct FoldPadWithPackOp : public OpRewritePattern<PackOp> {
       if (!isEqualConstantIntOrValue(paddingValue, constantPaddingValue))
         return failure();
 
+    // Folding is not allowed if it introduces artificial padding.
----------------
hanhanW wrote:

I keep the comment because it is clearer.

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


More information about the Mlir-commits mailing list