[all-commits] [llvm/llvm-project] 663408: [AMDGPU] Always create Stack Object for reserved VGPR

Ruiling, Song via All-commits all-commits at lists.llvm.org
Wed Mar 10 18:06:57 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 66340846b3ed2e263a8505a860d4f42268549389
      https://github.com/llvm/llvm-project/commit/66340846b3ed2e263a8505a860d4f42268549389
  Author: Ruiling Song <ruiling.song at amd.com>
  Date:   2021-03-11 (Thu, 11 Mar 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
    M llvm/test/CodeGen/AMDGPU/callee-frame-setup.ll
    M llvm/test/CodeGen/AMDGPU/stack-realign.ll

  Log Message:
  -----------
  [AMDGPU] Always create Stack Object for reserved VGPR

As we may overwrite inactive lanes of a caller-save-vgpr, we should
always save/restore the reserved vgpr for sgpr spill.

Reviewed by: arsenm

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




More information about the All-commits mailing list