[PATCH] D100281: [AMDGPU] Revise handling of preexisting waitcnt

Tony Tye via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 12 00:17:52 PDT 2021


t-tye added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp:803
+/// \p OldWaitcntInstr and apply any extra wait from waitcnt that were added
+/// by previous passes. Currently this pass conservatively assumes that these
+/// preexisting waitcnt are required for correctness.
----------------
It seems it could delete them if it can prove they have no effect on execution due to no memory operations existing between them and a previous waitcnt. But if did that it must respect the WB/INV instructions that also effect waitcnts.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D100281



More information about the llvm-commits mailing list