[llvm] [MLInliner] Simplify NodeCount bookkeeping (PR #96576)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 28 14:19:33 PDT 2024


================
@@ -206,7 +206,6 @@ void MLInlineAdvisor::onPassEntry(LazyCallGraph::SCC *LastSCC) {
   // care about the nature of the Edge (call or ref). `FunctionLevels`-wise, we
   // record them at the same level as the original node (this is a choice, may
   // need revisiting).
-  NodeCount -= static_cast<int64_t>(NodesInLastSCC.size());
   while (!NodesInLastSCC.empty()) {
     const auto *N = *NodesInLastSCC.begin();
     NodesInLastSCC.erase(N);
----------------
aeubanks wrote:

not in this PR, this doesn't change dead function handling

https://github.com/llvm/llvm-project/pull/96576


More information about the llvm-commits mailing list