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

Chao Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 14:30:26 PDT 2022


asroy 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
----------------
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?


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

https://reviews.llvm.org/D124884



More information about the llvm-commits mailing list