[llvm] [MLInliner] Simplify NodeCount bookkeeping (PR #96576)
Mircea Trofin via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 18:55:24 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);
----------------
mtrofin wrote:
(this comment is meant for line 213, but github doesn't let me, so..) do you mean to `assert (!N->isDead())`?
https://github.com/llvm/llvm-project/pull/96576
More information about the llvm-commits
mailing list