[llvm] AMDGPU: Do not report inline immediates as legal for generic operands (PR #208216)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 21 08:51:29 PDT 2026


jayfoad wrote:

> > so why does it fall into the "generic operands" case?
> 
> It doesn't actually. This indirectly blocks the fold. The pseudo is treated as an SALU instruction, so SIFoldOperands ends up following the literal legality rule. The callee operand counts as a literal, so the 1234 can't also be folded

I see, so that change is that the `unknown:$callee` operand now counts the `0` callee as a literal instead of an inline. This seems like a bit of a mess but not really related to the current patch.

https://github.com/llvm/llvm-project/pull/208216


More information about the llvm-commits mailing list