[PATCH] D79073: [AMDGPU] For PAL, make sure Scratch Buffer Descriptor do not clobber GIT pointer

Venkata Ramanaiah Nalamothu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 02:06:35 PDT 2020


RamNalamothu created this revision.
RamNalamothu added reviewers: scott.linder, tpr, foad, t-tye, arsenm.
RamNalamothu added a project: LLVM.
Herald added subscribers: llvm-commits, kerbowa, hiraditya, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.

[AMDGPU] For PAL, make sure Scratch Buffer Descriptor do not clobber GIT pointer

Since SRSRC has alignment requirements, first find non GIT pointer clobbered registers for SRSRC and then if those registers clobber preloaded Scratch Wave Offset register, copy the Scratch Wave Offset register to a free SGPR.


Repository:
  rL LLVM

https://reviews.llvm.org/D79073

Files:
  llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
  llvm/lib/Target/AMDGPU/SIFrameLowering.h
  llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
  llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
  llvm/test/CodeGen/AMDGPU/SRSRC-GIT-clobber-check.ll
  llvm/test/CodeGen/AMDGPU/scratch-simple.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79073.260863.patch
Type: text/x-patch
Size: 11849 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200429/fa1a3a63/attachment.bin>


More information about the llvm-commits mailing list