summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-09-11 07:38:21 +0000
committerFangrui Song <maskray@google.com>2019-09-11 07:38:21 +0000
commit6b9df910d04fae62dacc22c1c84f66c0f126cde0 (patch)
tree0ead0af6855bc35d00a7687465d892c3084498b0
parentc26b3940c3207597b98bbe5331b886155b4441a9 (diff)
downloadbcm5719-llvm-6b9df910d04fae62dacc22c1c84f66c0f126cde0.tar.gz
bcm5719-llvm-6b9df910d04fae62dacc22c1c84f66c0f126cde0.zip
[LTO] Avoid calling GlobalValue::getGUID (MD5) twice
llvm-svn: 371593
-rw-r--r--llvm/lib/LTO/LTO.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index d6e7950b078..4696265a232 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -907,8 +907,7 @@ Error LTO::run(AddStreamFn AddStream, NativeObjectCache Cache) {
GlobalValue::dropLLVMManglingEscape(Res.second.IRName));
if (Res.second.VisibleOutsideSummary && Res.second.Prevailing)
- GUIDPreservedSymbols.insert(GlobalValue::getGUID(
- GlobalValue::dropLLVMManglingEscape(Res.second.IRName)));
+ GUIDPreservedSymbols.insert(GUID);
GUIDPrevailingResolutions[GUID] =
Res.second.Prevailing ? PrevailingType::Yes : PrevailingType::No;
OpenPOWER on IntegriCloud