mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Reduce double set lookups. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219505 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -410,9 +410,9 @@ std::error_code readCoverageMappingData(
|
||||
// function name.
|
||||
// This is useful to ignore the redundant records for the functions
|
||||
// with ODR linkage.
|
||||
if (UniqueFunctionMappingData.count(MappingRecord.FunctionNamePtr))
|
||||
if (!UniqueFunctionMappingData.insert(MappingRecord.FunctionNamePtr)
|
||||
.second)
|
||||
continue;
|
||||
UniqueFunctionMappingData.insert(MappingRecord.FunctionNamePtr);
|
||||
StringRef FunctionName;
|
||||
if (auto Err =
|
||||
ProfileNames.get(MappingRecord.FunctionNamePtr,
|
||||
|
Reference in New Issue
Block a user