[llvm] [AMDGPU] Fix hoist location for s_set_vgpr_msb past SALU program state instructions (PR #176206)

Alexander Weinrauch via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 15 14:37:51 PST 2026


================
@@ -11,8 +11,8 @@ body:             |
     ; CHECK: liveins: $vgpr10, $vgpr11, $vgpr900, $vgpr901
     ; CHECK-NEXT: {{  $}}
     ; CHECK-NEXT: $vgpr11 = nofpexcept V_EXP_F32_e32 killed $vgpr10, implicit $mode, implicit $exec
-    ; CHECK-NEXT: S_SET_VGPR_MSB 65, implicit-def $mode
     ; CHECK-NEXT: S_WAIT_DSCNT 0
+    ; CHECK-NEXT: S_SET_VGPR_MSB 65, implicit-def $mode
----------------
AlexAUT wrote:

It will be placed better again after the second PR from here: https://github.com/llvm/llvm-project/pull/176206#discussion_r2695436414

Without this fix the new lit test will have 2 set_vgpr_msb at the top producing incorrect IR. This is causing a functional regression in Triton.

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


More information about the llvm-commits mailing list