[llvm] [AMDGPU] Set glc/slc on volatile/nontemporal SMEM loads (PR #77443)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 03:47:11 PST 2024


================
@@ -5813,6 +5813,18 @@ in table :ref:`amdgpu-amdhsa-memory-model-code-sequences-gfx6-gfx9-table`.
                                                               be reordered by
                                                               hardware.
 
+     load         *none*       *none*         - constant - !volatile & !nontemporal
+
+                                                           1. s_load/s_buffer_load
+
+                                                         - !volatile & nontemporal
+
+                                                           1. s_load/s_buffer_load glc=1 slc=1
+
+                                                         - volatile
+
+                                                           1. s_load/s_buffer_load glc=1
----------------
jayfoad wrote:

OK. I have documented that but I don't understand `SIGfx6CacheControl::insertWait` well enough to implement it.

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


More information about the llvm-commits mailing list