[Mlir-commits] [mlir] [MLIR] Determine contiguousness of memrefs with dynamic dimensions (PR #142421)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Fri Jun 6 10:07:52 PDT 2025


================

----------------
ftynse wrote:

We usually don't write such unit tests when there exists a way to check functionality via a pass. Individual unit tests create a lot of additional compiler build time. In this case, one could add a test pass that annotates the operation with an attribute containing the number of contiguous dimensions on the result type, for example.

Also, I see this is carried over from a pre-existing structure, but this doesn't belong to `unittest/Dialect/MemRef`. The memref type is in the builtin dialect, so the related tests should live in `unittest/IR`.

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


More information about the Mlir-commits mailing list