[PATCH] D89525: [amdgpu] Enhance AMDGPU AA.

Michael Liao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 15 19:58:38 PDT 2020


hliao created this revision.
hliao added reviewers: rampitec, arsenm, yaxunl, nhaehnle.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, t-tye, tpr, dstuttard, jvesely, kzhuravl.
Herald added a project: LLVM.
hliao requested review of this revision.
Herald added a subscriber: wdng.

- In general, a generic point may alias to pointers in all other address spaces. However, for certain cases enforced by the programming model, we may found a generic point won't alias to pointers to local objects.
  - When a generic pointer is loaded from the constant address space, it could only be a pointer to the GLOBAL or CONSTANT address space. Thus, it won't alias to pointers to the PRIVATE or LOCAL address space.
  - When a generic pointer is passed as a kernel argument, it also could only be a pointer to the GLOBAL or CONSTANT address space. Thus, it also won't alias to pointers to the PRIVATE or LOCAL address space.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89525

Files:
  llvm/lib/Target/AMDGPU/AMDGPUAliasAnalysis.cpp
  llvm/test/CodeGen/AMDGPU/amdgpu-alias-analysis.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89525.298539.patch
Type: text/x-patch
Size: 5156 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201016/28c9efe5/attachment.bin>


More information about the llvm-commits mailing list