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)
commit03b49c843a7005856cf1f7bc94ce9545cd0d834b
tree3a48dfbf0409062dbcde4eb2a92148ba71903064
parent7a1c02d1f701027c05e913d1d6654ed1dc3e990c
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243462 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
test/CodeGen/AMDGPU/promote-alloca-stored-pointer-value.ll [new file with mode: 0644]