jayfoad wrote: > The AMDGPU fix still doesn't look right. The intention of the code is clearly that when you pass in `-1`, the `!eq(..., -1)` test should be `true`. How about #113279 to completely avoid this AMDGPU problem? https://github.com/llvm/llvm-project/pull/112904