[llvm] [AMDGPU] Use alias info to relax waitcounts for LDS DMA (PR #74537)

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 16:03:14 PST 2023


================
@@ -452,7 +468,7 @@ class SIInsertWaitcnts : public MachineFunctionPass {
   // FLAT instruction.
   WaitEventType getVmemWaitEventType(const MachineInstr &Inst) const {
     assert(SIInstrInfo::isVMEM(Inst) || SIInstrInfo::isFLAT(Inst));
-    if (!ST->hasVscnt())
+    if (!ST->hasVscnt() || SIInstrInfo::isLDSDMA(Inst))
       return VMEM_ACCESS;
----------------
rampitec wrote:

I have also made it more clear on the source.

https://github.com/llvm/llvm-project/pull/74537


More information about the llvm-commits mailing list