AMDGPU: Handle rewriting ptrmask for more address spaces
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 18 May 2020 15:32:46 +0000 (11:32 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 28 May 2020 18:35:15 +0000 (14:35 -0400)
commit4859dd41707e3d2a007a58491f1cf20b9510b753
tree37a074d1ec5099047cc6a9539318c5f7b5c379a1
parentebddf90a4e8ba062999f622cdcea2793ffc37426
AMDGPU: Handle rewriting ptrmask for more address spaces

If this mask only clears bits in the low 32-bit half of a flat
pointer, these bits are always preserved in the result address
space. If the high bits are modified, they may need to be preserved
for some kind of user pointer tagging.
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
llvm/test/Transforms/InferAddressSpaces/AMDGPU/ptrmask.ll