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 b2c8f66 commit e264b0eCopy full SHA for e264b0e
llvm/lib/ProfileData/InstrProf.cpp
@@ -1076,7 +1076,8 @@ void TemporalProfTraceTy::createBPFunctionNodes(
1076
// BalancedPartitioning more effective.
1077
for (auto &[Id, UNs] : IdToUNs)
1078
llvm::erase_if(UNs, [&](auto &UN) {
1079
- return UNFrequency[UN] <= 1 || 2 * UNFrequency[UN] > IdToUNs.size();
+ unsigned Freq = UNFrequency[UN];
1080
+ return Freq <= 1 || 2 * Freq > IdToUNs.size();
1081
});
1082
}
1083
0 commit comments