ΒΆbool needsComdatForCounter(
    const llvm::Function& F,
    const llvm::Module& M)

Description

Check if we can use Comdat for profile variables. This will eliminate the duplicated profile variables for Comdat functions.

Declared at: llvm/include/llvm/ProfileData/InstrProf.h:279

Parameters

const llvm::Function& F
const llvm::Module& M