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

Shilei Tian via All-commits all-commits at lists.llvm.org
Wed Jul 2 08:15:47 PDT 2025


  Branch: refs/heads/users/shiltian/trivial-aa-uniform-argument
  Home:   https://github.com/llvm/llvm-project
  Commit: 8dd7b018e8e44c124a3d8f5e44ac772837a32a05
      https://github.com/llvm/llvm-project/commit/8dd7b018e8e44c124a3d8f5e44ac772837a32a05
  Author: Shilei Tian <i at tianshilei.me>
  Date:   2025-07-02 (Wed, 02 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.



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