[all-commits] [llvm/llvm-project] 4973b0: [AMDGPU] Disable forceful inline of non-kernel fun...

Mahesha S via All-commits all-commits at lists.llvm.org
Wed Apr 14 20:44:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4973b0c4e774e18452f2a7da23af4dec7d368bfa
      https://github.com/llvm/llvm-project/commit/4973b0c4e774e18452f2a7da23af4dec7d368bfa
  Author: hsmahesha <mahesha.comp at gmail.com>
  Date:   2021-04-15 (Thu, 15 Apr 2021)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPUAlwaysInlinePass.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
    M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.h
    M llvm/test/CodeGen/AMDGPU/force-alwaysinline-lds-global-address-codegen.ll
    M llvm/test/CodeGen/AMDGPU/force-alwaysinline-lds-global-address.ll

  Log Message:
  -----------
  [AMDGPU] Disable forceful inline of non-kernel functions which use LDS.

Now since LDS uses within non-kernel functions are being handled in the
pass - LowerModuleLDS, we *NO* need to *forcefully* inline non-kernel
functions just because they use LDS. Do forceful inlining only when the
pass - LowerModuleLDS is not enabled. It is enabled by default.

Reviewed By: JonChesterfield

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




More information about the All-commits mailing list