[Mlir-commits] [mlir] [MLIR] Add a utility pass to linearize `memref` (PR #136797)

Krzysztof Drewniak llvmlistbot at llvm.org
Fri May 2 09:09:37 PDT 2025


krzysz00 wrote:

But that's a bug because the index of the meter will be larger than the size

Please fix the PR so it that becomes a load from a meter<32xf32> instead

(My sense of the fix is that the getLimearizedDizeAndOffset utility should be doing `max_(d = 0 upto rank) {strides[d] * sizes[d]}` for non-identity layouts

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


More information about the Mlir-commits mailing list