OSDN Git Service

[AMDGPU] Fix MaxWorkGroupsPerCU for large workgroups
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 15 Feb 2017 01:03:59 +0000 (01:03 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 15 Feb 2017 01:03:59 +0000 (01:03 +0000)
commit237ec36765b3bb486cc9d0957f00e7552c9ddedd
tree5f7601e520e41a5fa171d2c370a07e8f590cf8ce
parent52b918216d8f078524b38fb1758074c1bc34000a
[AMDGPU] Fix MaxWorkGroupsPerCU for large workgroups

This patch corrects the maximum workgroups per CU if we have big
workgroups (more than 128). This calculation contributes to the
occupancy calculation in respect to LDS size.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295134 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
test/CodeGen/AMDGPU/large-work-group-promote-alloca.ll