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 178fb96 commit 0e5826eCopy full SHA for 0e5826e
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -319,8 +319,9 @@ static FunctionSummary *calculatePrevailingSummary(
319
function_ref<bool(GlobalValue::GUID, const GlobalValueSummary *)>
320
IsPrevailing) {
321
322
- if (CachedPrevailingSummary.count(VI))
323
- return CachedPrevailingSummary[VI];
+ if (auto It = CachedPrevailingSummary.find(VI);
+ It != CachedPrevailingSummary.end())
324
+ return It->second;
325
326
/// At this point, prevailing symbols have been resolved. The following leads
327
/// to returning a conservative result:
0 commit comments