summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO
diff options
context:
space:
mode:
authorEugene Leviant <eleviant@accesssoftek.com>2019-10-22 09:24:12 +0000
committerEugene Leviant <eleviant@accesssoftek.com>2019-10-22 09:24:12 +0000
commit0f4186779e0415de8c771cba32f10b3023700ad7 (patch)
tree947cc87713c604c235d297295fda2b035e0d342f /llvm/lib/Transforms/IPO
parent78d632d1055467dd2880dc9ff6dfdc554505eda7 (diff)
downloadbcm5719-llvm-0f4186779e0415de8c771cba32f10b3023700ad7.tar.gz
bcm5719-llvm-0f4186779e0415de8c771cba32f10b3023700ad7.zip
[ThinLTO] Don't internalize during promotion
Differential revision: https://reviews.llvm.org/D69107 llvm-svn: 375493
Diffstat (limited to 'llvm/lib/Transforms/IPO')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionImport.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index 531dbb5b6f2..2ce8c92ec8a 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -952,6 +952,7 @@ void llvm::thinLTOResolvePrevailingInModule(
if (NewLinkage == GV.getLinkage())
return;
if (GlobalValue::isLocalLinkage(GV.getLinkage()) ||
+ GlobalValue::isLocalLinkage(NewLinkage) ||
// In case it was dead and already converted to declaration.
GV.isDeclaration())
return;
OpenPOWER on IntegriCloud