[PATCH] D16782: AMDGPU: Do not promote allocas with non-inbounds GEPs

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 1 12:35:04 PST 2016


arsenm created this revision.
arsenm added a reviewer: tstellarAMD.
arsenm added a subscriber: llvm-commits.
Herald added a subscriber: arsenm.

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.

http://reviews.llvm.org/D16782

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D16782.46569.patch
Type: text/x-patch
Size: 24192 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160201/ff365275/attachment.bin>


More information about the llvm-commits mailing list