[all-commits] [llvm/llvm-project] ca50be: [NVPTX] Implement NVPTX AliasAnalysis

Andrew Savonichev via All-commits all-commits at lists.llvm.org
Wed Feb 1 05:18:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca50be8c896b19847c2ff99c8ee1c4653a422cb7
      https://github.com/llvm/llvm-project/commit/ca50be8c896b19847c2ff99c8ee1c4653a422cb7
  Author: Andrew Savonichev <andrew.savonichev at gmail.com>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M llvm/lib/Target/NVPTX/CMakeLists.txt
    A llvm/lib/Target/NVPTX/NVPTXAliasAnalysis.cpp
    A llvm/lib/Target/NVPTX/NVPTXAliasAnalysis.h
    M llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
    M llvm/lib/Target/NVPTX/NVPTXTargetMachine.h
    A llvm/test/CodeGen/NVPTX/nvptx-aa.ll

  Log Message:
  -----------
  [NVPTX] Implement NVPTX AliasAnalysis

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 (via
getModRefInfoMask) to expose semantic of the constant address space to
the optimizer as discussed in D112466.

Differential Revision: https://reviews.llvm.org/D124787




More information about the All-commits mailing list