mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-31 01:15:36 +00:00
IPRA: avoid double query to the map (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@275689 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5de5eb94ef
commit
bf11cc79f2
@ -54,8 +54,9 @@ void PhysicalRegisterUsageInfo::storeUpdateRegUsageInfo(
|
||||
|
||||
const std::vector<uint32_t> *
|
||||
PhysicalRegisterUsageInfo::getRegUsageInfo(const Function *FP) {
|
||||
if (RegMasks.find(FP) != RegMasks.end())
|
||||
return &(RegMasks.find(FP)->second);
|
||||
auto It = RegMasks.find(FP);
|
||||
if (It != RegMasks.end())
|
||||
return &(It->second);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user