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

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 16 01:50:35 PST 2021


nikic created this revision.
Herald added subscribers: dexonsmith, hiraditya.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Track all GlobalObjects that reference a given comdat, which allows determining whether a function in a comdat is dead without scanning the whole module.


https://reviews.llvm.org/D115864

Files:
  llvm/include/llvm/IR/Comdat.h
  llvm/include/llvm/IR/GlobalObject.h
  llvm/lib/IR/Comdat.cpp
  llvm/lib/IR/Globals.cpp
  llvm/lib/Transforms/Utils/ModuleUtils.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115864.394788.patch
Type: text/x-patch
Size: 5933 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211216/872115de/attachment.bin>


More information about the llvm-commits mailing list