We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c1722 commit 506b31eCopy full SHA for 506b31e
llvm/lib/Transforms/IPO/PartialInlining.cpp
@@ -1393,9 +1393,12 @@ bool PartialInlinerImpl::tryPartialInline(FunctionCloner &Cloner) {
1393
CallerORE.emit(OR);
1394
1395
// Now update the entry count:
1396
- if (CalleeEntryCountV && CallSiteToProfCountMap.count(User)) {
1397
- uint64_t CallSiteCount = CallSiteToProfCountMap[User];
1398
- CalleeEntryCountV -= std::min(CalleeEntryCountV, CallSiteCount);
+ if (CalleeEntryCountV) {
+ if (auto It = CallSiteToProfCountMap.find(User);
+ It != CallSiteToProfCountMap.end()) {
1399
+ uint64_t CallSiteCount = It->second;
1400
+ CalleeEntryCountV -= std::min(CalleeEntryCountV, CallSiteCount);
1401
+ }
1402
}
1403
1404
AnyInline = true;
0 commit comments