[PATCH] D147022: inline global alias

Yaxun Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 27 20:58:06 PDT 2023


yaxunl created this revision.
yaxunl added reviewers: arsenm, tra, rjmccall.
Herald added subscribers: ormris, jeroen.dobbelaere, wenlei, steven_wu, hiraditya.
Herald added a project: All.
yaxunl requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

Currently, llvm does not inline functions called through alias.
This causes performance degradation on Windows compared
with Linux, since on Windows some constructors are emitted
as aliases to other constructors.

This patch allows functions called through alias to be inlined.


https://reviews.llvm.org/D147022

Files:
  llvm/include/llvm/IR/AbstractCallSite.h
  llvm/include/llvm/IR/InstrTypes.h
  llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
  llvm/test/Other/cgscc-refscc-mutation-order.ll
  llvm/test/ThinLTO/X86/devirt_function_alias2.ll
  llvm/test/Transforms/Inline/inline-alias.ll
  llvm/test/Transforms/OpenMP/global_alias.ll
  llvm/test/Transforms/SampleProfile/indirect-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147022.508881.patch
Type: text/x-patch
Size: 5847 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230328/fcc4f374/attachment.bin>


More information about the llvm-commits mailing list