[llvm] [AMDGPU] Use range-based for loops. NFC. (PR #99047)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 06:53:36 PDT 2024


================
@@ -344,6 +342,8 @@ void SIMachineFunctionInfo::shiftSpillPhysVGPRsToLowestRange(
       MBB.removeLiveIn(Reg);
       MBB.sortUniqueLiveIns();
     }
+
+    Reg = NewReg;
----------------
jayfoad wrote:

I find this a bit subtle. It updates the entry in SpillPhysVGPRs. I don't know if there's a good way to make this more obvious to the reader.

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


More information about the llvm-commits mailing list