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 7d37172 commit c36c462Copy full SHA for c36c462
llvm/include/llvm/IR/ModuleSummaryIndex.h
@@ -1544,14 +1544,7 @@ class ModuleSummaryIndex {
1544
continue; // skip over non-root nodes
1545
Edges.push_back(std::make_pair(P.first, CalleeInfo{}));
1546
}
1547
- if (Edges.empty()) {
1548
- // Failed to find root - return an empty node
1549
- return FunctionSummary::makeDummyFunctionSummary(
1550
- SmallVector<FunctionSummary::EdgeTy, 0>());
1551
- }
1552
- auto CallGraphRoot =
1553
- FunctionSummary::makeDummyFunctionSummary(std::move(Edges));
1554
- return CallGraphRoot;
+ return FunctionSummary::makeDummyFunctionSummary(std::move(Edges));
1555
1556
1557
bool withGlobalValueDeadStripping() const {
0 commit comments