[llvm] AMDGPU: Fix s_barrier_leave to write to scc (PR #161221)

Petar Avramovic via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 30 04:53:45 PDT 2025


================
@@ -1616,17 +1616,15 @@ def S_BARRIER_WAIT : SOPP_Pseudo <"s_barrier_wait", (ins i16imm:$simm16), "$simm
   let isConvergent = 1;
 }
 
-def S_BARRIER_LEAVE : SOPP_Pseudo <"s_barrier_leave", (ins)> {
+  def S_BARRIER_LEAVE : SOPP_Pseudo <"s_barrier_leave",
+    (ins), "", [(int_amdgcn_s_barrier_leave (Ignore))] > {
----------------
petar-avramovic wrote:

error: In S_BARRIER_LEAVE: Unrecognized node 'srcvalue'!
  def S_BARRIER_LEAVE : SOPP_Pseudo <"s_barrier_leave",
      ^
srcvalue {
}


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


More information about the llvm-commits mailing list