Return true if Comdat function F can safely share renamed counters.
Declared in <llvm/ProfileData/InstrProf.h>
bool
canRenameComdatFunc(
Function const& F,
bool CheckAddressTaken = false);
Instances of the same Comdat may have different control flow and therefore cannot always share one counter variable.
True if F can safely share renamed Comdat counters.
| Name | Description |
|---|---|
| F | Function being considered for Comdat renaming. |
| CheckAddressTaken | If true, reject address-taken functions. |