[llvm] r278272 - AMDGPU: Use CreateStackObject instead of CreateSpillStackObject
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 10 12:11:37 PDT 2016
Author: arsenm
Date: Wed Aug 10 14:11:36 2016
New Revision: 278272
URL: http://llvm.org/viewvc/llvm-project?rev=278272&view=rev
Log:
AMDGPU: Use CreateStackObject instead of CreateSpillStackObject
I'm not sure what the difference is, but no other target
uses this for emergency spill slots.
Modified:
llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp?rev=278272&r1=278271&r2=278272&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIFrameLowering.cpp Wed Aug 10 14:11:36 2016
@@ -290,9 +290,9 @@ void SIFrameLowering::processFunctionBef
"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);
}
}
More information about the llvm-commits
mailing list