ftynse wrote: We can also have a proper unit test here https://github.com/llvm/llvm-project/tree/main/mlir/unittests/IR. This looks like an API-level feature and having to roll a test pass for it may be too much of unwarranted complexity. https://github.com/llvm/llvm-project/pull/74792