diff options
| author | Sean Fertile <sfertile@ca.ibm.com> | 2017-11-04 01:54:20 +0000 |
|---|---|---|
| committer | Sean Fertile <sfertile@ca.ibm.com> | 2017-11-04 01:54:20 +0000 |
| commit | 39770ca0a11c4cd19c38f51a1ffda6b07ab8b90d (patch) | |
| tree | 5e73a5c00a4ff53e5f2e538df9b350bbeca17d6a /llvm/lib/Transforms | |
| parent | 73cf9241049f0444d62b4cc9c4648cc7ae4bfd3d (diff) | |
| download | bcm5719-llvm-39770ca0a11c4cd19c38f51a1ffda6b07ab8b90d.tar.gz bcm5719-llvm-39770ca0a11c4cd19c38f51a1ffda6b07ab8b90d.zip | |
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
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Utils/FunctionImportUtils.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp b/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp index 2e6fc4e8482..fbb61ac1ae9 100644 --- a/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp +++ b/llvm/lib/Transforms/Utils/FunctionImportUtils.cpp @@ -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())) { |

