[llvm] [Inliner] Handle CGSCC changes from #94815 (PR #96274)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 21 07:42:43 PDT 2024


================
@@ -484,8 +484,7 @@ void MLInlineAdvisor::print(raw_ostream &OS) const {
   OS << "\n";
   OS << "[MLInlineAdvisor] FuncLevels:\n";
   for (auto I : FunctionLevels)
-    OS << (I.first->isDead() ? "<deleted>" : I.first->getFunction().getName())
-       << " : " << I.second << "\n";
+    OS << I.first->getFunction().getName() << " : " << I.second << "\n";
----------------
mtrofin wrote:

nit: since this is for diags, it would be useful to keep track of functions that will be deleted. maybe we can keep a set of such functions? can't see that costing anything significant. Since the functions aren't killed, we can have a set of pointers, really. wdyt?

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


More information about the llvm-commits mailing list