[all-commits] [llvm/llvm-project] 774805: [RegAllocGreedy] New hook regClassPriorityTrumpsGl...

Jay Foad via All-commits all-commits at lists.llvm.org
Tue May 17 04:42:58 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 77480556c41fbca36b918323c69cb77f8e02b56c
      https://github.com/llvm/llvm-project/commit/77480556c41fbca36b918323c69cb77f8e02b56c
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2022-05-17 (Tue, 17 May 2022)

  Changed paths:
    M llvm/include/llvm/CodeGen/TargetRegisterInfo.h
    M llvm/include/llvm/Target/Target.td
    M llvm/lib/CodeGen/RegAllocGreedy.cpp
    M llvm/lib/CodeGen/RegAllocGreedy.h
    A llvm/test/CodeGen/AMDGPU/greedy-liverange-priority.mir

  Log Message:
  -----------
  [RegAllocGreedy] New hook regClassPriorityTrumpsGlobalness

Add a new TargetRegisterInfo hook to allow targets to tweak the
priority of live ranges, so that AllocationPriority of the register
class will be treated as more important than whether the range is local
to a basic block or global. This is determined per-MachineFunction.

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




More information about the All-commits mailing list