[all-commits] [llvm/llvm-project] b5ec13: AMDGPU: Fix allocating GDS globals to LDS offsets

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Apr 19 19:25:27 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5ec131267d13862d00c1a71666d3cae68eb0f9e
      https://github.com/llvm/llvm-project/commit/b5ec131267d13862d00c1a71666d3cae68eb0f9e
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2022-04-19 (Tue, 19 Apr 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUMachineFunction.h
    M llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
    M llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
    A llvm/test/CodeGen/AMDGPU/gds-allocation.ll
    M llvm/test/CodeGen/MIR/AMDGPU/machine-function-info.ll

  Log Message:
  -----------
  AMDGPU: Fix allocating GDS globals to LDS offsets

These don't seem to be very well used or tested, but try to make the
behavior a bit more consistent with LDS globals.

I'm not sure what the definition for amdgpu-gds-size is supposed to
mean. For now I assumed it's allocating a static size at the beginning
of the allocation, and any known globals are allocated after it.


  Commit: 987df725ac2b802a6e158e0c3012f6cf8c996f97
      https://github.com/llvm/llvm-project/commit/987df725ac2b802a6e158e0c3012f6cf8c996f97
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2022-04-19 (Tue, 19 Apr 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
    M llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
    M llvm/test/CodeGen/MIR/AMDGPU/machine-function-info-after-pei.ll
    M llvm/test/CodeGen/MIR/AMDGPU/machine-function-info-no-ir.mir
    M llvm/test/CodeGen/MIR/AMDGPU/machine-function-info.ll
    A llvm/test/CodeGen/MIR/AMDGPU/vgpr-for-agpr-copy-invalid-reg.mir

  Log Message:
  -----------
  AMDGPU: Serialize VGPRForAGPRCopy


Compare: https://github.com/llvm/llvm-project/compare/378bb8014df6...987df725ac2b


More information about the All-commits mailing list