[all-commits] [llvm/llvm-project] 48d94c: [AMDGPU][Attributor] Infer inreg attribute in `AMD...

Shilei Tian via All-commits all-commits at lists.llvm.org
Mon Jul 21 12:00:04 PDT 2025


  Branch: refs/heads/users/shiltian/trivial-aa-uniform-argument
  Home:   https://github.com/llvm/llvm-project
  Commit: 48d94c1bf80b29202cc172b6c61f5bacd890850c
      https://github.com/llvm/llvm-project/commit/48d94c1bf80b29202cc172b6c61f5bacd890850c
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2025-07-21 (Mon, 21 Jul 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
    A llvm/test/CodeGen/AMDGPU/aa-inreg-inference.ll

  Log Message:
  -----------
  [AMDGPU][Attributor] Infer inreg attribute in `AMDGPUAttributor`

This patch introduces `AAAMDGPUUniformArgument` that can infer `inreg` function
argument attribute. The idea is, for a function argument, if the corresponding
call site arguments are always uniform, we can mark it as `inreg` thus pass it
via SGPR.

In addition, this AA is also able to propagate the inreg attribute if feasible.


  Commit: 5c96d702c98bd42ccb616a84e329bda47a8b3545
      https://github.com/llvm/llvm-project/commit/5c96d702c98bd42ccb616a84e329bda47a8b3545
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2025-07-21 (Mon, 21 Jul 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
    M llvm/test/CodeGen/AMDGPU/aa-inreg-inference.ll
    M llvm/test/CodeGen/AMDGPU/attributor-noalias-addrspace.ll

  Log Message:
  -----------
  fix comments


Compare: https://github.com/llvm/llvm-project/compare/8533188feff8...5c96d702c98b

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