[all-commits] [llvm/llvm-project] 5bac67: [AMDGPU] Use SIRegisterInfo to compute used regist...

Diana Picus via All-commits all-commits at lists.llvm.org
Fri Jul 18 00:22:58 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bac67d9213da8afa0e35199395774ca3c7daa39
      https://github.com/llvm/llvm-project/commit/5bac67d9213da8afa0e35199395774ca3c7daa39
  Author: Diana Picus <Diana-Magda.Picus at amd.com>
  Date:   2025-07-18 (Fri, 18 Jul 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUResourceUsageAnalysis.cpp
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.h

  Log Message:
  -----------
  [AMDGPU] Use SIRegisterInfo to compute used registers. NFCI (#149051)

Simplify the code in AMDGPUResourceUsageAnalysis to rely more
on the TargetRegisterInfo for computing the number of used SGPRs and
AGPRs. This is a preliminary refactoring split out from #144855.

(While we could technically use TRI to compute the used number of VGPRs
 at this point too, I'm leaving some of the original code in since for
 VGPRs we're going to introduce some special cases).



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