MaskRay wrote: I feel this is a one-consumer hack dressed up as a general primitive... I think we should close this one, focus on 191708, and if we find a generalizable pattern, reopen this PR. https://github.com/llvm/llvm-project/pull/191706