[all-commits] [llvm/llvm-project] 01c1c7: [AMDGPU][CodeGen] Update support (soffset + offset...

Acim Maravic via All-commits all-commits at lists.llvm.org
Tue Nov 14 10:06:59 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 01c1c7a19eb2e7a1aadba6016ddd623ca4c356dd
      https://github.com/llvm/llvm-project/commit/01c1c7a19eb2e7a1aadba6016ddd623ca4c356dd
  Author: Acim Maravic <119684637+Acim-Maravic at users.noreply.github.com>
  Date:   2023-11-14 (Tue, 14 Nov 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.h
    M llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
    M llvm/test/CodeGen/AMDGPU/amdgcn-load-offset-from-reg.ll

  Log Message:
  -----------
  [AMDGPU][CodeGen] Update support (soffset + offset) s_buffer_load's (#68302)

getBaseWithConstantOffset() is used for scalar and non-scalar buffer
loads. Diffrence between s_load and load instruction is that s_load
instruction extends 32-bit offset to 64-bits, so a 32-bit (address +
offset) should not cause unsigned 32-bit integer wraparound, because it
performs addition in 64-bits.




More information about the All-commits mailing list