[PATCH] D23180: AMDGPU: Use CreateStackObject instead of CreateSpillStackObject

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 4 14:46:01 PDT 2016


arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added subscribers: kzhuravl, arsenm.

I'm not sure what the difference is, but no other target uses this for emergency spill slots.

https://reviews.llvm.org/D23180

Files:
  lib/Target/AMDGPU/SIFrameLowering.cpp

Index: lib/Target/AMDGPU/SIFrameLowering.cpp
===================================================================
--- lib/Target/AMDGPU/SIFrameLowering.cpp
+++ lib/Target/AMDGPU/SIFrameLowering.cpp
@@ -290,9 +290,9 @@
          "RegScavenger required if spilling");
 
   if (MayNeedScavengingEmergencySlot) {
-    int ScavengeFI = MFI.CreateSpillStackObject(
+    int ScavengeFI = MFI.CreateStackObject(
       AMDGPU::SGPR_32RegClass.getSize(),
-      AMDGPU::SGPR_32RegClass.getAlignment());
+      AMDGPU::SGPR_32RegClass.getAlignment(), false);
     RS->addScavengingFrameIndex(ScavengeFI);
   }
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23180.66859.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160804/6a3318ff/attachment.bin>


More information about the llvm-commits mailing list