OSDN Git Service

AMDGPU: Do not promote allocas with non-inbounds GEPs
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 2 Feb 2016 21:16:12 +0000 (21:16 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 2 Feb 2016 21:16:12 +0000 (21:16 +0000)
commitf1f2dd4ca2b66e0e6d46b27f65df5bb027b83893
treee275f649ac50a9718b5dcadc34f10662278ecb43
parent551787639edf4934fea8f089e792fe8a9fa6a835
AMDGPU: Do not promote allocas with non-inbounds GEPs

If we can't assume the pointer value isn't within the bounds
of the object, it seems risky to try to replace the pointer
calculations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259573 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
test/CodeGen/AMDGPU/array-ptr-calc-i32.ll
test/CodeGen/AMDGPU/indirect-private-64.ll
test/CodeGen/AMDGPU/private-memory-atomics.ll
test/CodeGen/AMDGPU/private-memory-r600.ll
test/CodeGen/AMDGPU/private-memory.ll