AMDGPU: Disable AMDGPUPromoteAlloca pass for shader calling conventions.
authorNicolai Haehnle <nhaehnle@gmail.com>
Mon, 18 Jul 2016 09:02:47 +0000 (09:02 +0000)
committerNicolai Haehnle <nhaehnle@gmail.com>
Mon, 18 Jul 2016 09:02:47 +0000 (09:02 +0000)
commitbef1ceb8154f771d5f52a10fa60fdcf86bd7d528
tree2ca9326bb925ee3c227bf9246854af0019f2dfc0
parent97be487728c242feb197410872ca191fc5f5de0f
AMDGPU: Disable AMDGPUPromoteAlloca pass for shader calling conventions.

Summary:
The work item intrinsics are not available for the shader
calling conventions. And even if we did hook them up most
shader stages haves some extra restrictions on the amount
of available LDS.

Reviewers: tstellarAMD, arsenm

Subscribers: nhaehnle, arsenm, llvm-commits, kzhuravl

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

llvm-svn: 275779
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
llvm/test/CodeGen/AMDGPU/promote-alloca-shaders.ll [new file with mode: 0644]