AMDGPU: Fix groupstaticsize for large LDS
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 22 Jul 2016 17:01:33 +0000 (17:01 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 22 Jul 2016 17:01:33 +0000 (17:01 +0000)
commit3c07c813c059408b8ba3c307b747a202e4104128
tree7e920eaa96fff6a577ee0ce4d95d9cc05a0e37fc
parent8d718dcfdae7c4ce7fae4ed51ac8a931142dc89d
AMDGPU: Fix groupstaticsize for large LDS

The size can exceed s_movk_i32's limit, and we don't
want to use it this early since it inhibits optimizations.

This should probably be merged to the release branch.

llvm-svn: 276438
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/llvm.amdgcn.groupstaticsize.ll