[llvm] r262297 - AMDGPU: Don't use estimated stack size when we know the real stack size
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 29 20:58:20 PST 2016
Author: arsenm
Date: Mon Feb 29 22:58:20 2016
New Revision: 262297
URL: http://llvm.org/viewvc/llvm-project?rev=262297&view=rev
Log:
AMDGPU: Don't use estimated stack size when we know the real stack size
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp?rev=262297&r1=262296&r2=262297&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp Mon Feb 29 22:58:20 2016
@@ -482,7 +482,7 @@ void AMDGPUAsmPrinter::getSIProgramInfo(
ProgInfo.DX10Clamp = 1;
const MachineFrameInfo *FrameInfo = MF.getFrameInfo();
- ProgInfo.ScratchSize = FrameInfo->estimateStackSize(MF);
+ ProgInfo.ScratchSize = FrameInfo->getStackSize();
ProgInfo.FlatUsed = FlatUsed;
ProgInfo.VCCUsed = VCCUsed;
More information about the llvm-commits
mailing list