AMDGPU/SI: Increase SGPR limit to 96 on Tonga/Iceland
authorMarek Olsak <marek.olsak@amd.com>
Fri, 5 Aug 2016 21:23:29 +0000 (21:23 +0000)
committerMarek Olsak <marek.olsak@amd.com>
Fri, 5 Aug 2016 21:23:29 +0000 (21:23 +0000)
commit355a8642b470a4c1910a8e7c65c546e28622694d
tree7c8fd2ed0531a1593a3966d1749079fd56587e23
parent71d74d4b256709ad9ad3ae6927486e46dfc280c3
AMDGPU/SI: Increase SGPR limit to 96 on Tonga/Iceland

Summary:
This is the setting of the Vulkan closed source driver.

It decreases the max wave count from 10 to 8.

26010 shaders in 14650 tests
Totals:
VGPRS: 829593 -> 808440 (-2.55 %)
Spilled SGPRs: 81878 -> 42226 (-48.43 %)
Spilled VGPRs: 367 -> 358 (-2.45 %)
Scratch VGPRs: 1764 -> 1748 (-0.91 %) dwords per thread
Code Size: 36677864 -> 35923932 (-2.06 %) bytes

There is a massive decrease in SGPR spilling in general and -7.4% spilled
VGPRs for DiRT Showdown (= SGPRs spilled to scratch?)

Reviewers: arsenm, tstellarAMD, nhaehnle

Subscribers: arsenm, llvm-commits, kzhuravl

Differential Revision: https://reviews.llvm.org/D23034

llvm-svn: 277867
llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h
llvm/test/CodeGen/AMDGPU/elf.ll
llvm/test/CodeGen/AMDGPU/load-constant-i32.ll