forked from OSchip/llvm-project
AMDGPU: Don't use estimated stack size when we know the real stack size
llvm-svn: 262297
This commit is contained in:
parent
59b8b77405
commit
f4dfc1a027
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue