================ ---------------- amd-relkhoul wrote: I don't see a helper that does the same thing, but I agree that SIInstrInfo is a better location for it. I'll move it there. https://github.com/llvm/llvm-project/pull/205481