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 7355c60 commit c668980Copy full SHA for c668980
llvm/lib/Analysis/MLInlineAdvisor.cpp
@@ -189,9 +189,10 @@ MLInlineAdvisor::MLInlineAdvisor(
189
}
190
191
unsigned MLInlineAdvisor::getInitialFunctionLevel(const Function &F) const {
192
- return FunctionLevels.find(CG.lookup(F)) != FunctionLevels.end()
193
- ? FunctionLevels.at(CG.lookup(F))
194
- : 0;
+ auto It = FunctionLevels.find(CG.lookup(F));
+ if (It == FunctionLevels.end())
+ return 0;
195
+ return *It;
196
197
198
void MLInlineAdvisor::onPassEntry(LazyCallGraph::SCC *CurSCC) {
0 commit comments