[Mlir-commits] [mlir] [mlir][tosa] Fix crash in slice op folder when input values are not iterable (PR #187339)

Lutz Roeder llvmlistbot at llvm.org
Fri Mar 20 19:39:33 PDT 2026


lutzroeder wrote:

@lhutton1 @GeorgeARM the hex blob for `slice_resource` is 48 bytes total. Per [Parser.cpp](https://github.com/llvm/llvm-project/blob/4cba4ad8d73b9e4934c03a483a42bd08c93d8298/mlir/lib/AsmParser/Parser.cpp#L2711), the first 4 bytes encode alignment and are stripped, leaving 44 bytes of data for a tensor<3x4xi32> which needs 48 bytes (12 × i32). Should the blob be 52 bytes (4 alignment + 48 data) or is this by design?


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


More information about the Mlir-commits mailing list