[PATCH] D54125: [LTO] Drop non-prevailing definitions for non-local linkage types
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 6 06:41:24 PST 2018
tejohnson added inline comments.
================
Comment at: lib/LTO/LTO.cpp:285
static void thinLTOResolveWeakForLinkerGUID(
GlobalValueSummaryList &GVSummaryList, GlobalValue::GUID GUID,
----------------
The thinLTOResolveWeakForLinker* routines need a new name with this change. Maybe thinLTOResolvePrevailing*?
================
Comment at: lib/LTO/LTO.cpp:294
GlobalValue::LinkageTypes OriginalLinkage = S->linkage();
- if (!GlobalValue::isWeakForLinker(OriginalLinkage))
+ if (GlobalValue::isLocalLinkage(OriginalLinkage))
continue;
----------------
You mentioned in the PR that you get test failures if you guard against appending linkage symbols here. I'd like to understand why. With the old code we would not have resolved appending linkage symbols either.
Repository:
rL LLVM
https://reviews.llvm.org/D54125
More information about the llvm-commits
mailing list