[llvm-branch-commits] [mlir] [mlir][linalg] Restrict linalg.pack to not have artificial padding. (PR #149624)
Adam Siemieniuk via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Jul 24 06:10:42 PDT 2025
================
@@ -4717,6 +4697,12 @@ static LogicalResult commonVerifierPackAndUnPackOp(OpTy packOrUnPack) {
return op->emitError("mismatch in inner tile sizes specified and shaped of "
"tiled dimension in the packed type");
}
+ if (failed(verifyCompatibleShape(expectedPackedType.getShape(),
+ packedType.getShape()))) {
+ return op->emitError("expected ")
+ << expectedPackedType << " for the unpacked domain value, got "
----------------
adam-smnk wrote:
nit: I think it should be `packed domain` - result for `pack`, input for `unpack`
https://github.com/llvm/llvm-project/pull/149624
More information about the llvm-branch-commits
mailing list