Returns true if a basic block (or its frequency) is suggested to be size-optimized based on the profile.
Declared in <llvm/Transforms/Utils/SizeOpts.h>
template<
typename BlockTOrBlockFreq,
typename BFIT>
bool
shouldOptimizeForSizeImpl(
BlockTOrBlockFreq BBOrBlockFreq,
ProfileSummaryInfo* PSI,
BFIT* BFI,
PGSOQueryType QueryType);
True if the block should be optimized for size.
| Name | Description |
|---|---|
| BBOrBlockFreq | The basic block or block frequency to consider. |
| PSI | Profile summary information used to classify hot/cold code. |
| BFI | Block frequency information for the enclosing function. |
| QueryType | The caller context of this size-optimization query. |