[all-commits] [llvm/llvm-project] f4ba2b: AMDGPU: Add amdgpu-agpr-alloc attribute to control...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Wed Mar 5 18:14:21 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f4ba2bf236c1f6243420ae4872accc350af98624
      https://github.com/llvm/llvm-project/commit/f4ba2bf236c1f6243420ae4872accc350af98624
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-03-06 (Thu, 06 Mar 2025)

  Changed paths:
    M llvm/docs/AMDGPUUsage.rst
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
    A llvm/test/CodeGen/AMDGPU/amdgpu-no-agprs-violations.ll
    A llvm/test/CodeGen/AMDGPU/amdgpu-num-agpr.ll

  Log Message:
  -----------
  AMDGPU: Add amdgpu-agpr-alloc attribute to control AGPR allocation (#128034)

This provides a range to decide how to subdivide the vector register
budget on gfx90a+. A single value declares the minimum AGPRs that
should be allocatable. Eventually this should replace amdgpu-no-agpr.

I want this primarily for testing agpr allocation behavior. We should
have a heuristic try to detect a reasonable number of AGPRs to keep
allocatable.



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