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 9128077 commit f5d3c87Copy full SHA for f5d3c87
llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
@@ -201,9 +201,7 @@ class SampleProfileMatcher {
201
void UpdateWithSalvagedProfiles();
202
203
LocToLocMap &getIRToProfileLocationMap(const Function &F) {
204
- auto Ret = FuncMappings.try_emplace(
205
- FunctionSamples::getCanonicalFnName(F.getName()), LocToLocMap());
206
- return Ret.first->second;
+ return FuncMappings[FunctionSamples::getCanonicalFnName(F.getName())];
207
}
208
void distributeIRToProfileLocationMap();
209
void distributeIRToProfileLocationMap(FunctionSamples &FS);
0 commit comments