[PATCH] D79647: AMDGPU: Skip GetUnderlyingObject check in pointsToConstantMemory

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 8 13:26:06 PDT 2020


arsenm created this revision.
arsenm added reviewers: rampitec, kerbowa, cfang.
Herald added subscribers: hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.

Check the address space first before searching for the object
definition to save compile time. As an added bonus, this will now
treat casts to constant addrspace as constant.

      

We also seemed to be missing target tests for this, so add a few
missing other cases too.


https://reviews.llvm.org/D79647

Files:
  llvm/lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
  llvm/test/CodeGen/AMDGPU/aa-points-to-constant-memory.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79647.262938.patch
Type: text/x-patch
Size: 4611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200508/6abb5791/attachment.bin>


More information about the llvm-commits mailing list