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

Synopsis

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

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

Parameters

Name

Description

PSI

Analysis providing profile information.

BFI

BlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate IR basic block frequencies.

Created with MrDocs