mugiwaraluffy56 wrote: Good catch. I'll add nullptr checks to the other callers as well to ensure they handle the missing target case gracefully, similar to the subgroup distribute pass. https://github.com/llvm/llvm-project/pull/179173