[all-commits] [llvm/llvm-project] 513929: [AMDGPU] Track physical VGPRs used for SGPR spills...

Carl Ritson via All-commits all-commits at lists.llvm.org
Sat Dec 16 23:44:30 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5139299618cfc33eb7b4772cea5a8b60131dfc90
      https://github.com/llvm/llvm-project/commit/5139299618cfc33eb7b4772cea5a8b60131dfc90
  Author: Carl Ritson <carl.ritson at amd.com>
  Date:   2023-12-17 (Sun, 17 Dec 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
    M llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
    M llvm/test/CodeGen/AMDGPU/sgpr-spill-overlap-wwm-reserve.mir

  Log Message:
  -----------
  [AMDGPU] Track physical VGPRs used for SGPR spills (#75573)

Physical VGPRs used for SGPR spills need to be tracked independent of
WWM reserved registers. The WWM reserved set contains extra registers
allocated during WWM pre-allocation pass.

This causes SGPR spills allocated after WWM pre-allocation to overlap
with WWM register usage, e.g. if frame pointer is spilt during
prologue/epilog insertion.




More information about the All-commits mailing list