[llvm] [AMDGPU] Change static NOP last terminator SI_DEMOTE_I1 to be replaced by S_BRANCH instead of assert (PR #204649)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 18 11:48:22 PDT 2026


================
@@ -0,0 +1,23 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc -mtriple=amdgcn--amdpal -mcpu=gfx1100 %s -o - | FileCheck %s
+
+define amdgpu_ps void @_amdgpu_ps_main() #0 {
+; CHECK-LABEL: _amdgpu_ps_main:
+; CHECK:       ; %bb.0: ; %.entry
+; CHECK-NEXT:    s_endpgm
+.entry:
+  %ballot = call i64 @llvm.amdgcn.ballot.i64(i1 true)
+  %not_ballot = icmp eq i64 %ballot, 0
+  %inverse = xor i1 %not_ballot, true
+  call void @llvm.amdgcn.wqm.demote(i1 %inverse)
+  br label %.exit
+
+.exit:
+  ret void
+}
+
+declare void @llvm.amdgcn.wqm.demote(i1) #1
----------------
arsenm wrote:

Referring to dead attribute groups 

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


More information about the llvm-commits mailing list