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

Renato Golin llvmlistbot at llvm.org
Thu Oct 15 03:08:48 PDT 2026


rengolin wrote:

> With this PR, we bail out of the lowering (`tosa.pad` -> `tensor.pad`) when the padding contains -1.

If there's no other way to lower this, any graph that uses unknown padding values will fail to lower at all. There has to be another way.

Either Tosa legalizes the padding before lowering (to some default or poison value), or instead of bailing, we generate poison directly.

@lhutton1 @sjarus 

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


More information about the Mlir-commits mailing list