OSDN Git Service

AMDGPU: Remove dead check in AMDGPUPromoteAlloca
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 18 Jul 2016 18:34:53 +0000 (18:34 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 18 Jul 2016 18:34:53 +0000 (18:34 +0000)
commit865e2fa1dcb411121c2f2a1097a8a1b2d1adbce9
tree85db9648776a57f3ce744d50e0d56d30952140ce
parent797b9ee0603e381e3749709d61c1453d46ce451b
AMDGPU: Remove dead check in AMDGPUPromoteAlloca

This is currently only called with GEP users. A direct
alloca would only happen with current typed pointers
for arrays which are a perverse case.

Also fix crashes on 0 x and 1 x arrays.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275869 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
test/CodeGen/AMDGPU/amdgpu.private-memory.ll
test/CodeGen/AMDGPU/vector-alloca.ll