[all-commits] [llvm/llvm-project] 80fd5f: [AMDGPU] Replace non-kernel function uses of LDS g...

Mahesha S via All-commits all-commits at lists.llvm.org
Sun Jun 20 23:23:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 80fd5fa5269ce102b3126d2de49970e3af6719d5
      https://github.com/llvm/llvm-project/commit/80fd5fa5269ce102b3126d2de49970e3af6719d5
  Author: hsmahesha <mahesha.comp at gmail.com>
  Date:   2021-06-21 (Mon, 21 Jun 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPU.h
    M llvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
    A llvm/lib/Target/AMDGPU/AMDGPUReplaceLDSUseWithPointer.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/CMakeLists.txt
    M llvm/lib/Target/AMDGPU/Utils/AMDGPULDSUtils.cpp
    M llvm/lib/Target/AMDGPU/Utils/AMDGPULDSUtils.h
    M llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-diamond-shape.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-selected_functions.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-global-scope-use.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-inline-asm-call.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-kernel-only-used-lds.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-not-reachable-lds.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-ignore-small-lds.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-diamond-shape.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-selected_functions.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-signature-match.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-lds-offsets.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-multiple-lds.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-same-lds.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-const-expr1.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-const-expr2.ll
    A llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-phi-inst.ll

  Log Message:
  -----------
  [AMDGPU] Replace non-kernel function uses of LDS globals by pointers.

The main motivation behind pointer replacement of LDS use within non-kernel
functions is - to *avoid* subsequent LDS lowering pass from directly packing
LDS (assume large LDS) into a struct type which would otherwise cause allocating
huge memory for struct instance within every kernel.

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D103225




More information about the All-commits mailing list