[llvm] [AMDGPU] Support true16 spill restore with sram-ecc (PR #165320)

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 30 15:46:47 PDT 2025


================
@@ -1823,6 +1823,16 @@ void SIRegisterInfo::buildSpillLoadStore(
       }
     }
 
+    Register FinalValueReg = ValueReg;
+    if (LoadStoreOp == AMDGPU::SCRATCH_LOAD_USHORT_SADDR) {
+      // If we are loading 16-bit value with SRAMECC endabled we need a temp
----------------
rampitec wrote:

SCRATCH_LOAD_USHORT_SADDR is only used with sramecc, that was checked earlier.

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


More information about the llvm-commits mailing list