[PATCH] D17743: 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 16:00:08 PST 2016


arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.

http://reviews.llvm.org/D17743

Files:
  lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp

Index: lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
===================================================================
--- lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -482,7 +482,7 @@
   ProgInfo.DX10Clamp = 1;
 
   const MachineFrameInfo *FrameInfo = MF.getFrameInfo();
-  ProgInfo.ScratchSize = FrameInfo->estimateStackSize(MF);
+  ProgInfo.ScratchSize = FrameInfo->getStackSize();
 
   ProgInfo.FlatUsed = FlatUsed;
   ProgInfo.VCCUsed = VCCUsed;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17743.49432.patch
Type: text/x-patch
Size: 486 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160301/b8e4bec1/attachment.bin>


More information about the llvm-commits mailing list