[PATCH] D111150: [AMDGPU] Remove dead frame indices after sgpr spill.

Mahesha S via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 5 06:50:20 PDT 2021


hsmhsm created this revision.
hsmhsm added reviewers: arsenm, rampitec, cdevadas, sebastian-ne.
Herald added subscribers: foad, kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl, qcolombet.
hsmhsm requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

All those frame indices which are dead after sgpr spill should be removed from
the function frame. Othewise, there is a side effect such as re-mapping of free
frame index ids by the later pass(es) like "stack slot coloring" which in turn
could mess-up with the book keeping of "frame index to VGPR lane".


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111150

Files:
  llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
  llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
  llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
  llvm/test/CodeGen/AMDGPU/sgpr-spill-incorrect-fi-bookkeeping-bug.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111150.377200.patch
Type: text/x-patch
Size: 14489 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211005/db1aa33e/attachment-0001.bin>


More information about the llvm-commits mailing list