AMDGPU: Don't use estimated stack size when we know the real stack size

llvm-svn: 262297
This commit is contained in:
Matt Arsenault 2016-03-01 04:58:20 +00:00
parent 59b8b77405
commit f4dfc1a027
1 changed files with 1 additions and 1 deletions

View File

@ -482,7 +482,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
ProgInfo.DX10Clamp = 1; ProgInfo.DX10Clamp = 1;
const MachineFrameInfo *FrameInfo = MF.getFrameInfo(); const MachineFrameInfo *FrameInfo = MF.getFrameInfo();
ProgInfo.ScratchSize = FrameInfo->estimateStackSize(MF); ProgInfo.ScratchSize = FrameInfo->getStackSize();
ProgInfo.FlatUsed = FlatUsed; ProgInfo.FlatUsed = FlatUsed;
ProgInfo.VCCUsed = VCCUsed; ProgInfo.VCCUsed = VCCUsed;