[llvm] [AMDGPU][true16] extract 16bit for scratch_load_ubyte_st when spilling (PR #203589)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 13:01:56 PDT 2026


================
@@ -1939,7 +1939,8 @@ void SIRegisterInfo::buildSpillLoadStore(
     }
 
     Register FinalValueReg = ValueReg;
-    if (LoadStoreOp == AMDGPU::SCRATCH_LOAD_USHORT_SADDR) {
+    if (LoadStoreOp == AMDGPU::SCRATCH_LOAD_USHORT_SADDR ||
----------------
arsenm wrote:

Can you add a mir test for this 

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


More information about the llvm-commits mailing list