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

Mahesha S via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 14 07:54:32 PDT 2021


hsmhsm created this revision.
hsmhsm added reviewers: JonChesterfield, arsenm.
Herald added subscribers: kerbowa, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, jvesely, kzhuravl.
hsmhsm requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100481

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100481.337453.patch
Type: text/x-patch
Size: 5865 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210414/257031e2/attachment.bin>


More information about the llvm-commits mailing list