[PATCH] D24623: [AMDGPU] Implement memory model

Tony Tye via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 18 15:50:27 PDT 2017


t-tye added inline comments.


================
Comment at: lib/Target/AMDGPU/SIMemoryLegalizer.cpp:361
+      ++MI;
+      Changed |= InsertWaitcntVmcnt0(MI);
+      Changed |= InsertBufferWbinvl1Vol(MI);
----------------
Is this required if a DS memory operation? Seems it is only required if a VMEM or FLAT instruction to ensure it has completed before invalidating the cache.


================
Comment at: lib/Target/AMDGPU/SIMemoryLegalizer.cpp:408
+      ++MI;
+      Changed |= InsertWaitcntVmcnt0(MI);
+      Changed |= InsertBufferWbinvl1Vol(MI);
----------------
Is this required if a DS memory operation? Seems it is only required if a VMEM or FLAT instruction to ensure it has completed before invalidating the cache.


https://reviews.llvm.org/D24623





More information about the llvm-commits mailing list