Revert "[LTO][ThinLTO] Use the linker resolutions to mark global values ..."
Changes more tests then expected on one of the build bots. reverting to investigate. This reverts https://llvm.org/svn/llvm-project/llvm/trunk@317374 llvm-svn: 317395
This commit is contained in:
@@ -203,23 +203,6 @@ FunctionImportGlobalProcessing::getLinkage(const GlobalValue *SGV,
|
||||
}
|
||||
|
||||
void FunctionImportGlobalProcessing::processGlobalForThinLTO(GlobalValue &GV) {
|
||||
|
||||
// Check the summaries to see if the symbol gets resolved to a known local
|
||||
// definition.
|
||||
if (GV.hasName()) {
|
||||
ValueInfo VI = ImportIndex.getValueInfo(GV.getGUID());
|
||||
if (VI) {
|
||||
// Need to check all summaries are local in case of hash collisions.
|
||||
bool IsLocal = VI.getSummaryList().size() &&
|
||||
llvm::all_of(VI.getSummaryList(),
|
||||
[](const std::unique_ptr<GlobalValueSummary> &Summary) {
|
||||
return Summary->isDSOLocal();
|
||||
});
|
||||
if (IsLocal)
|
||||
GV.setDSOLocal(true);
|
||||
}
|
||||
}
|
||||
|
||||
bool DoPromote = false;
|
||||
if (GV.hasLocalLinkage() &&
|
||||
((DoPromote = shouldPromoteLocalToGlobal(&GV)) || isPerformingImport())) {
|
||||
|
||||
Reference in New Issue
Block a user