[all-commits] [llvm/llvm-project] 244aa7: [AMDGPU] move hasAGPRs/hasVGPRs into header

Stanislav Mekhanoshin via All-commits all-commits at lists.llvm.org
Thu Sep 30 10:35:02 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 244aa7f7358da791a231ffd4efd849f166050c4b
      https://github.com/llvm/llvm-project/commit/244aa7f7358da791a231ffd4efd849f166050c4b
  Author: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
  Date:   2021-09-30 (Thu, 30 Sep 2021)

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

  Log Message:
  -----------
  [AMDGPU] move hasAGPRs/hasVGPRs into header

It is now very simple and can go right into the header
allowing optimizer to combine callers, such as isVGPRClass
and similar.

It does not need anything from the TRI itself anymore, so
make it static class member along with the callers.

Differential Revision: https://reviews.llvm.org/D110762




More information about the All-commits mailing list