[Mlir-commits] [mlir] [mlir][tosa] Fail lowering of `tosa.pad` -> `tensor.pad` with -1 padding (PR #232221)

Mehdi Amini llvmlistbot at llvm.org
Thu Oct 15 03:19:36 PDT 2026


joker-eph wrote:

I looked up the upstream specification here: https://www.mlplatform.org/tosa/tosa_spec_1_0_2.html#_pad

The verification explicitly forbids any negative entry in the padding. 
```
    ERROR_IF(padding[i * 2] < 0 || padding[(i * 2) + 1] < 0);
```




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


More information about the Mlir-commits mailing list