AMDGPU: Don't try to use LDS/vector for private if pointer value stored
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 28 Jul 2015 18:47:00 +0000 (18:47 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 28 Jul 2015 18:47:00 +0000 (18:47 +0000)
commit7227cc1a48b64ceaad888495e7b9a4f3e4360316
tree1e83ae2bfd67cb4cc1ac28cf6385b686270024e0
parentfdcd39a8ad8330fab4194be372a360fa1afe04ce
AMDGPU: Don't try to use LDS/vector for private if pointer value stored

If the pointer is the store's value operand, this would produce
a broken module. Make sure the use is actually for the pointer operand.

llvm-svn: 243462
llvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
llvm/test/CodeGen/AMDGPU/promote-alloca-stored-pointer-value.ll [new file with mode: 0644]