From: Matt Arsenault Date: Wed, 10 Aug 2016 19:11:36 +0000 (+0000) Subject: AMDGPU: Use CreateStackObject instead of CreateSpillStackObject X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b920e9987df2fa99dffa973c66c364b3675e2412;p=platform%2Fupstream%2Fllvm.git 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 --- diff --git a/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp b/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp index b8a78ac..ea7a0de 100644 --- a/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp +++ b/llvm/lib/Target/AMDGPU/SIFrameLowering.cpp @@ -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); } }