[PATCH] D144270: [LTO/WPD] Allow devirtualization to function alias in vtable
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 17 07:58:31 PST 2023
tejohnson created this revision.
tejohnson added reviewers: mingmingl, pcc.
Herald added subscribers: ormris, jeroen.dobbelaere, steven_wu, hiraditya, inglorion, Prazek.
Herald added a project: All.
tejohnson requested review of this revision.
Herald added a project: LLVM.
Follow on to D144209 <https://reviews.llvm.org/D144209> to support single implementation devirtualization
for Regular LTO when the vtable holds a function alias.
For now I have prevented other optimizations performed in regular LTO
that need to analyze the contents of the function target when the vtable
holds an alias, as I'm not sure they are always correct to perform in
that case.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D144270
Files:
llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h
llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
llvm/test/ThinLTO/X86/devirt_function_alias2.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144270.498379.patch
Type: text/x-patch
Size: 8278 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230217/f2ef6f30/attachment-0001.bin>
More information about the llvm-commits
mailing list