[PATCH] D80038: InferAddressSpaces: Handle ptrmask intrinsic

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 15 15:14:29 PDT 2020


arsenm created this revision.
arsenm added reviewers: jingyue, tra, jlebar, hliao, rampitec, reshabh.
Herald added subscribers: kerbowa, hiraditya, arichardson, tpr, nhaehnle, wdng, jvesely.
Herald added a project: LLVM.

This one is slightly odd since it counts as an address expression,
which previously could never fail. Allow the existing TTI hook to
return the value to use, and re-use it for handling how to handle
ptrmask.

      

Handles the no-op addrspacecasts for AMDGPU. We could probably do
something better based on analysis of the mask value based on the
address space, but leave that for now.


https://reviews.llvm.org/D80038

Files:
  llvm/include/llvm/Analysis/TargetTransformInfo.h
  llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
  llvm/include/llvm/CodeGen/BasicTTIImpl.h
  llvm/lib/Analysis/TargetTransformInfo.cpp
  llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.h
  llvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
  llvm/test/Transforms/InferAddressSpaces/AMDGPU/ptrmask.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80038.264349.patch
Type: text/x-patch
Size: 16840 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200515/319adcd7/attachment.bin>


More information about the llvm-commits mailing list