[Mlir-commits] [mlir] [mlir] Fix padding shape computation in PadTilingInterface (PR #149576)

Vivian Zhang llvmlistbot at llvm.org
Mon Jul 21 22:10:31 PDT 2025


yzhang93 wrote:

@fabianmcg Thanks for pointing out the issue. I've made adjustments to consider special cases such as non-unit strides or dilations. So basically, for the affine map `(d0 * stride + d1)`, the correct range size should be `(s0 - 1) * stride + (s1 - 1) * 1 + 1`. While the `paddingSize = s0 * stride`, so the adjustment should be `paddingSize - stride`. Similar for non-unit diltions.

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


More information about the Mlir-commits mailing list