[llvm] r371593 - [LTO] Avoid calling GlobalValue::getGUID (MD5) twice
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 00:38:21 PDT 2019
Author: maskray
Date: Wed Sep 11 00:38:21 2019
New Revision: 371593
URL: http://llvm.org/viewvc/llvm-project?rev=371593&view=rev
Log:
[LTO] Avoid calling GlobalValue::getGUID (MD5) twice
Modified:
llvm/trunk/lib/LTO/LTO.cpp
Modified: llvm/trunk/lib/LTO/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTO.cpp?rev=371593&r1=371592&r2=371593&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTO.cpp (original)
+++ llvm/trunk/lib/LTO/LTO.cpp Wed Sep 11 00:38:21 2019
@@ -907,8 +907,7 @@ Error LTO::run(AddStreamFn AddStream, Na
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;
More information about the llvm-commits
mailing list