[llvm] [AMDGPU] Ensure non-reserved CSR spilled regs are live-in (PR #146427)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 1 02:21:21 PDT 2025


================
@@ -995,6 +996,12 @@ void SIFrameLowering::emitCSRSpillStores(
         }
       };
 
+  for (const auto &Reg : WWMScratchRegs) {
----------------
jayfoad wrote:

Could use `make_first_range` or `for (auto [VGPR, FI] : WWMScratchRegs)`

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


More information about the llvm-commits mailing list