[all-commits] [llvm/llvm-project] adeeac: [AMDGPU] Spill CSR VGPR which is reserved for SGPR...

Austin Kerbow via All-commits all-commits at lists.llvm.org
Tue Jul 28 11:53:55 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: adeeac9d5a322a751011d4624152317cb43419d9
      https://github.com/llvm/llvm-project/commit/adeeac9d5a322a751011d4624152317cb43419d9
  Author: Austin Kerbow <Austin.Kerbow at amd.com>
  Date:   2020-07-28 (Tue, 28 Jul 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
    M llvm/test/CodeGen/AMDGPU/reserve-vgpr-for-sgpr-spill.ll

  Log Message:
  -----------
  [AMDGPU] Spill CSR VGPR which is reserved for SGPR spills

Update logic for reserving VGPR for SGPR spills. A CSR VGPR being reserved for
SGPR spills could be clobbered if there were no free lower VGPR's available.
Create a stack object so that it will be spilled in the prologue. Also
adds more tests.

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




More information about the All-commits mailing list