[llvm-branch-commits] [llvm] [AMDGPU] Allocate and reserve registers for address space 13 objects (PR #214248)

Matt Arsenault via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Nov 2 20:53:03 PST 2026


================
@@ -20583,6 +20624,16 @@ void SITargetLowering::finalizeLowering(MachineFunction &MF) const {
 
   Info->limitOccupancy(MF);
 
+  // The object lives in registers and every reference to its frame index is
+  // now its address, so it must not take up stack space as well.
+  MachineFrameInfo &MFI = MF.getFrameInfo();
+  for (int FI = MFI.getObjectIndexBegin(), E = MFI.getObjectIndexEnd(); FI != E;
+       ++FI) {
+    const AllocaInst *Alloca = MFI.getObjectAllocation(FI);
----------------
arsenm wrote:

This isn't managing the debug info 

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


More information about the llvm-branch-commits mailing list