kuhar wrote: Oh, I understand, so it's more that `linalg.index` doesn't have a proper parent yet at that point. In this case, could you clarify this in the code comment above the null check? https://github.com/llvm/llvm-project/pull/137427