AMDGPU: Use CreateStackObject instead of CreateSpillStackObject

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

llvm-svn: 278272
This commit is contained in:
Matt Arsenault 2016-08-10 19:11:36 +00:00
parent aa564b237e
commit d534109bca

View File

@ -290,9 +290,9 @@ void SIFrameLowering::processFunctionBeforeFrameFinalized(
"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);
}
}