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

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 30 15:43:52 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
----------------
arsenm wrote:

Isn't this also an issue for the 8-bit cases? 

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


More information about the llvm-commits mailing list