ΒΆvoid filterDeadComdatFunctions(
llvm::Module& M,
SmallVectorImpl<llvm::Function*>&
DeadComdatFunctions)
void filterDeadComdatFunctions(
llvm::Module& M,
SmallVectorImpl<llvm::Function*>&
DeadComdatFunctions)
Description
Filter out potentially dead comdat functions where other entries keep the entire comdat group alive. This is designed for cases where functions appear to become dead but remain alive due to other live entries in their comdat group. The \p DeadComdatFunctions container should only have pointers to `Function`s which are members of a comdat group and are believed to be dead. After this routine finishes, the only remaining `Function`s in \p DeadComdatFunctions are those where every member of the comdat is listed and thus removing them is safe (provided *all* are removed).
Declared at: llvm/include/llvm/Transforms/Utils/ModuleUtils.h:97
Parameters
- llvm::Module& M
- SmallVectorImpl<llvm::Function*>& DeadComdatFunctions