[PATCH] D102432: [AMDGPU] Add support for architected flat scratch

Tony Tye via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 13 14:07:16 PDT 2021


t-tye added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIFrameLowering.cpp:496-504
+  if ((MFI->hasFlatScratchInit() || ScratchRsrcReg) &&
+      !ST.flatScratchIsArchitected()) {
     MRI.addLiveIn(PreloadedScratchWaveOffsetReg);
     MBB.addLiveIn(PreloadedScratchWaveOffsetReg);
   }
 
   if (MFI->hasFlatScratchInit()) {
----------------
Does the architected flat scratch register pair also need to be made live in when scratch is enabled and architected flat scratch is supported?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D102432/new/

https://reviews.llvm.org/D102432



More information about the llvm-commits mailing list