[llvm] [AMDGPU] Model structured control-flow lane masks as i1 (PR #209158)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 13 06:25:56 PDT 2026


================
@@ -3903,24 +3903,24 @@ def int_amdgcn_cooperative_atomic_store_8x16B : AMDGPUCooperativeAtomicStore<llv
 // convergence control tokens. The corresponding MIR pseudos are marked as
 // having side effects, which is sufficient to prevent optimizations without
 // having to mark them as convergent.
-def int_amdgcn_if : Intrinsic<[llvm_i1_ty, llvm_anyint_ty],
----------------
arsenm wrote:

This definitely shouldn't be done. This is counter to the entire point, the second argument is a wave sized integer not a bool 

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


More information about the llvm-commits mailing list