[PATCH] D124787: [NVPTX] Implement NVPTX AliasAnalysis

Andrew Savonichev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 2 10:55:53 PDT 2022


asavonic created this revision.
asavonic added reviewers: tra, jholewinski, jlebar.
Herald added subscribers: mattd, gchakrabarti, jeroen.dobbelaere, hiraditya, mgorny.
Herald added a project: All.
asavonic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

NVPTXAliasAnalysis extends the default AA to take pointer address spaces 
into account. The analysis assumes that pointers in different address
spaces do not alias, unless one of them is generic (flat) address
space.

The patch also implements pointsToConstantMemory() to expose semantic
of the constant address space to the optimizer as discussed in
D112466 <https://reviews.llvm.org/D112466>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124787

Files:
  llvm/lib/Target/NVPTX/CMakeLists.txt
  llvm/lib/Target/NVPTX/NVPTXAliasAnalysis.cpp
  llvm/lib/Target/NVPTX/NVPTXAliasAnalysis.h
  llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
  llvm/lib/Target/NVPTX/NVPTXTargetMachine.h
  llvm/test/CodeGen/NVPTX/nvptx-aa.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124787.426445.patch
Type: text/x-patch
Size: 13826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220502/f0eb3e1d/attachment.bin>


More information about the llvm-commits mailing list