From 6b9df910d04fae62dacc22c1c84f66c0f126cde0 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 11 Sep 2019 07:38:21 +0000 Subject: [LTO] Avoid calling GlobalValue::getGUID (MD5) twice llvm-svn: 371593 --- llvm/lib/LTO/LTO.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib') 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; -- cgit v1.2.3