[PATCH] D124550: [AMDGPU] Handle LDS DMA and LDS_DIRECT hazards
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 28 01:35:21 PDT 2022
foad added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp:366-377
if (ST.hasReadM0MovRelInterpHazard() && (TII.isVINTRP(*MI) ||
isSMovRel(MI->getOpcode())))
return std::max(WaitStates, checkReadM0Hazards(MI));
if (ST.hasReadM0SendMsgHazard() && isSendMsgTraceDataOrGDS(TII, *MI))
return std::max(WaitStates, checkReadM0Hazards(MI));
----------------
The coding style is strange here because it looks like it could call checkReadM0Hazards four times. But I guess in practice at most one of the conditionals will be true?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124550/new/
https://reviews.llvm.org/D124550
More information about the llvm-commits
mailing list