[llvm] [AMDGPU] Make VALU instructions defining SGPR non-ignorable (PR #195270)

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Fri May 1 10:29:00 PDT 2026


================
@@ -6,15 +6,15 @@ define void @vgpr_descriptor_waterfall_loop_idom_update(ptr %arg) #0 {
 ; GCN-LABEL: vgpr_descriptor_waterfall_loop_idom_update:
 ; GCN:       ; %bb.0: ; %entry
 ; GCN-NEXT:    s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
-; GCN-NEXT:    v_add_co_u32 v6, vcc_lo, v0, 8
-; GCN-NEXT:    v_add_co_ci_u32_e32 v7, vcc_lo, 0, v1, vcc_lo
 ; GCN-NEXT:  .LBB0_1: ; %bb0
 ; GCN-NEXT:    ; =>This Loop Header: Depth=1
 ; GCN-NEXT:    ; Child Loop BB0_2 Depth 2
+; GCN-NEXT:    v_add_co_u32 v6, vcc_lo, v0, 8
+; GCN-NEXT:    v_add_co_ci_u32_e32 v7, vcc_lo, 0, v1, vcc_lo
----------------
rampitec wrote:

Potentially VCC is OK, I do not think it is ever used in a context of a lane mask, but it is OK for now.

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


More information about the llvm-commits mailing list