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 2f88672 commit 6228379Copy full SHA for 6228379
llvm/tools/llvm-profgen/MissingFrameInferrer.cpp
@@ -206,11 +206,12 @@ uint64_t MissingFrameInferrer::computeUniqueTailCallPath(
206
207
uint64_t MissingFrameInferrer::computeUniqueTailCallPath(
208
uint64_t From, BinaryFunction *To, SmallVectorImpl<uint64_t> &Path) {
209
- if (!TailCallEdgesF.count(From))
+ auto It = TailCallEdgesF.find(From);
210
+ if (It == TailCallEdgesF.end())
211
return 0;
212
Path.push_back(From);
213
uint64_t NumPaths = 0;
- for (auto Target : TailCallEdgesF[From]) {
214
+ for (auto Target : It->second) {
215
NumPaths += computeUniqueTailCallPath(Target, To, Path);
216
// Stop analyzing the remaining if we are already seeing more than one
217
// reachable paths.
0 commit comments