[PATCH] D124884: [AMDGPU] Add intrinsic llvm.amdgcn.raw.buffer.load.lds

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 14:33:33 PDT 2022


arsenm added inline comments.


================
Comment at: llvm/test/CodeGen/AMDGPU/llvm.amdgcn.raw.buffer.load.lds.ll:16
+; GCN:       ; %bb.0: ; %main_body
+; GCN-NEXT:    s_mov_b32 m0, s4
+; GCN-NEXT:    buffer_load_dword off, s[0:3], 0 lds
----------------
asroy wrote:
> m0 holds the size of LDS, should we save the value of m0 before overwriting it, and write the value back before issuing ds_read?
Every user of m0 is supposed to set it itself, and we hopefully clean up the redundant rewrites. It's not something that's generally saved and restored per operation


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

https://reviews.llvm.org/D124884



More information about the llvm-commits mailing list