[PATCH] D98220: [WPD][ELF] Allow whole program devirtualization for version script localized symbols
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 9 10:15:24 PST 2021
MaskRay added a comment.
@lanza I did not know that `-flto -fvisibility=hidden -fwhole-program-vtables -fvirtual-function-elimination` create s`!vcall_visibility VCallVisibilityLinkageUnit`.
With `VCallVisibilityLinkageUnit`, WPD will be performed, no need for this change (`test/ThinLTO/X86/devirt_vcall_vis_hidden.ll`).
This change specifically handles localization via a `local:` version node in a version script, where WPD was not performed previously.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D98220/new/
https://reviews.llvm.org/D98220
More information about the llvm-commits
mailing list