[llvm] [clang] [AMDGPU] Emit a waitcnt instruction after each memory instruction (PR #68932)
Jun Wang via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 9 10:10:18 PST 2023
================
@@ -1809,6 +1816,23 @@ bool SIInsertWaitcnts::shouldFlushVmCnt(MachineLoop *ML,
return HasVMemLoad && UsesVgprLoadedOutside;
}
+bool SIInsertWaitcnts::insertWaitcntAfterMemOp(MachineFunction &MF) {
+ bool Modified = false;
+
+ for (auto &MBB : MF) {
----------------
jwanggit86 wrote:
As commented above, the newly created llc option is not really necessary and will be removed.
https://github.com/llvm/llvm-project/pull/68932
More information about the cfe-commits
mailing list