[all-commits] [llvm/llvm-project] 728b87: [AMDGPU] Set the CostPerUse value for vgpr registers.

cdevadas via All-commits all-commits at lists.llvm.org
Thu Mar 19 23:23:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 728b878de689e4921ca7f864ed3036f9b2c53853
      https://github.com/llvm/llvm-project/commit/728b878de689e4921ca7f864ed3036f9b2c53853
  Author: cdevadas <cdevadas at amd.com>
  Date:   2020-03-20 (Fri, 20 Mar 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIRegisterInfo.td
    M llvm/test/CodeGen/AMDGPU/spill-vgpr-to-agpr.ll
    M llvm/test/CodeGen/AMDGPU/vgpr-spill-emergency-stack-slot.ll

  Log Message:
  -----------
  [AMDGPU] Set the CostPerUse value for vgpr registers.

Apart from the argument registers, set the CostPerUse
value as per the ratio reg_index/allocation_granularity.
It is a pre-commit for introducing the scratch registers
in the ABI. This change should help in a balanced
register allocation.

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




More information about the All-commits mailing list