[PATCH] D102432: [AMDGPU] Add support for architected flat scratch
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 13 16:16:05 PDT 2021
rampitec marked an inline comment as done.
rampitec added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp:727-728
+ MRI.isPhysRegUsed(AMDGPU::FLAT_SCR_HI) ||
+ MRI.isLiveIn(MFI->getPreloadedReg(
+ AMDGPUFunctionArgInfo::FLAT_SCRATCH_INIT));
----------------
arsenm wrote:
> Presumably this is a reserved register which we wouldn't need to add to liveins?
It's not a flat scratch, that is SGPR to init it. We normally add the livein in the emitEntryFunctionFlatScratchInit().
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102432/new/
https://reviews.llvm.org/D102432
More information about the llvm-commits
mailing list