Filter out potentially dead comdat functions where other entries keep the entire comdat group alive.

Synopsis

Declared in <llvm/Transforms/Utils/ModuleUtils.h>

void
filterDeadComdatFunctions(SmallVectorImpl<Function*>& DeadComdatFunctions);

Description

This is designed for cases where functions appear to become dead but remain alive due to other live entries in their comdat group.

The 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 `DeadComdatFunctions are those where every member of the comdat is listed and thus removing them is safe (provided all are removed).

Parameters

Name

Description

DeadComdatFunctions

Candidate dead comdat functions; filtered in place.

Created with MrDocs