[PATCH] D115864: [IR] Track users of comdat

Arthur Eubanks via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 5 10:54:59 PST 2022


aeubanks added a comment.

very nice!



================
Comment at: llvm/lib/Transforms/Utils/ModuleUtils.cpp:201
 
-  // Remove the entries that were not covering.
-  erase_if(DeadComdatFunctions, [&](GlobalValue *GV) {
-    return ComdatEntriesCovered.find(GV->getComdat()) ==
-           ComdatEntriesCovered.end();
+  // Only keep functions for which the comdat is dead.
+  erase_if(DeadComdatFunctions, [&](Function *F) {
----------------
or doesn't have a comdat


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115864/new/

https://reviews.llvm.org/D115864



More information about the llvm-commits mailing list