llvm::shouldFuncOptimizeForSizeImpl

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

Synopsis

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

template<
    typename FuncT,
    typename BFIT>
bool
shouldFuncOptimizeForSizeImpl(
    FuncT const* F,
    ProfileSummaryInfo* PSI,
    BFIT* BFI,
    PGSOQueryType QueryType);

Return Value

True if F should be optimized for size.

Parameters

NameDescription
FThe function to consider for size optimization.
PSIProfile summary information used to classify hot/cold code.
BFIBlock frequency information for F.
QueryTypeThe caller context of this size-optimization query.