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 573df34 commit 99d2b3bCopy full SHA for 99d2b3b
llvm/tools/llvm-profgen/MissingFrameInferrer.cpp
@@ -165,14 +165,14 @@ uint64_t MissingFrameInferrer::computeUniqueTailCallPath(
165
if (CurSearchingDepth == MaximumSearchDepth)
166
return 0;
167
168
-
169
- if (!FuncToTailCallMap.count(From))
+ auto It = FuncToTailCallMap.find(From);
+ if (It == FuncToTailCallMap.end())
170
171
172
CurSearchingDepth++;
173
Visiting.insert(From);
174
uint64_t NumPaths = 0;
175
- for (auto TailCall : FuncToTailCallMap[From]) {
+ for (auto TailCall : It->second) {
176
NumPaths += computeUniqueTailCallPath(TailCall, To, Path);
177
// Stop analyzing the remaining if we are already seeing more than one
178
// reachable paths.
0 commit comments