Per discussion on
https://reviews.llvm.org/D59709#inline-1148734, this seems like the
right course of action. canBeOmittedFromSymbolTable() subsumes and
generalizes the previous logic. In addition to handling linkonce_odr
unnamed_addr globals, we now also internalize linkonce_odr +
local_unnamed_addr constants.
Details
Details
- Reviewers
tejohnson pcc - Group Reviewers
Restricted Project - Commits
- rGdd29597e103c: [LTO] Initialize canAutoHide() using canBeOmittedFromSymbolTable()
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM, thanks for fixing! One suggestion below for updating the test description. Also, can you update the patch description to note specifically what is changing as a result of the patch - i.e. that local_unnamed_addr constants can now also be auto hidden. The current summary mentions that the prior approach only handled linkonce_odr globals, which is still the case.
llvm/test/ThinLTO/X86/linkonce_odr_unnamed_addr.ll | ||
---|---|---|
0–1 | Update comment. |
Update comment.