ΒΆbool shouldOptimizeForSize(
    const llvm::Function* F,
    llvm::ProfileSummaryInfo* PSI,
    llvm::BlockFrequencyInfo* BFI,
    llvm::PGSOQueryType QueryType =
        PGSOQueryType::Other)

Description

Returns true if function \p F is suggested to be size-optimized based on the profile.

Declared at: llvm/include/llvm/Transforms/Utils/SizeOpts.h:93

Parameters

const llvm::Function* F
llvm::ProfileSummaryInfo* PSI
llvm::BlockFrequencyInfo* BFI
llvm::PGSOQueryType QueryType = PGSOQueryType::Other