aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2018-02-05 17:17:51 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2018-02-05 17:17:51 +0000
commitb4edfb9af93c39f448ac649edff3be4d17263297 (patch)
treec25cddc1a2e1c106dd8d263626456c9b89dcd6c3 /llvm/lib/LTO/LTO.cpp
parent2329fcd293e138924d96d4b2643dab7f3d60c3f3 (diff)
downloadllvm-b4edfb9af93c39f448ac649edff3be4d17263297.zip
llvm-b4edfb9af93c39f448ac649edff3be4d17263297.tar.gz
llvm-b4edfb9af93c39f448ac649edff3be4d17263297.tar.bz2
LTO: Include dso-local bit in ThinLTO cache key.
Differential Revision: https://reviews.llvm.org/D42713 llvm-svn: 324253
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index a5bdeac..02d1c75 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -177,8 +177,10 @@ static void computeCacheKey(
auto AddUsedThings = [&](GlobalValueSummary *GS) {
if (!GS) return;
- for (const ValueInfo &VI : GS->refs())
+ for (const ValueInfo &VI : GS->refs()) {
+ AddUnsigned(VI.isDSOLocal());
AddUsedCfiGlobal(VI.getGUID());
+ }
if (auto *FS = dyn_cast<FunctionSummary>(GS)) {
for (auto &TT : FS->type_tests())
UsedTypeIds.insert(TT);