[all-commits] [llvm/llvm-project] e168d2: [Attributor] Take the address space from addrspace...

Shilei Tian via All-commits all-commits at lists.llvm.org
Wed Sep 11 10:53:58 PDT 2024


  Branch: refs/heads/users/shiltian/as-cast
  Home:   https://github.com/llvm/llvm-project
  Commit: e168d2b98575db6b7aa993dd9e150d495e2be42f
      https://github.com/llvm/llvm-project/commit/e168d2b98575db6b7aa993dd9e150d495e2be42f
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2024-09-11 (Wed, 11 Sep 2024)

  Changed paths:
    M llvm/include/llvm/Transforms/IPO/Attributor.h
    M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
    M llvm/test/CodeGen/AMDGPU/aa-as-infer.ll
    M llvm/test/CodeGen/AMDGPU/addrspacecast.ll

  Log Message:
  -----------
  [Attributor] Take the address space from addrspacecast directly

If the value to be analyzed is directly from addrspacecast, we take the source
address space directly. This is to improve the case where in
`AMDGPUPromoteKernelArgumentsPass`, the kernel argument is promoted by
insertting an addrspacecast directly from a generic pointer. However, during the
analysis, the underlying object will be the generic pointer, instead of the
addrspacecast, thus the inferred address space is the generic one, which is not
ideal.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list