[#llvm-shouldOptimizeForSize-03] = xref:llvm.adoc[llvm]::shouldOptimizeForSize :relfileprefix: ../ :mrdocs: Returns true if basic block `BB` is suggested to be size‐optimized based on the profile. == Synopsis Declared in `<llvm/Transforms/Utils/SizeOpts.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool shouldOptimizeForSize( xref:llvm/BasicBlock.adoc[BasicBlock] const* BB, xref:llvm/ProfileSummaryInfo.adoc[ProfileSummaryInfo]* PSI, xref:llvm/BlockFrequencyInfo.adoc[BlockFrequencyInfo]* BFI, xref:llvm/PGSOQueryType.adoc[PGSOQueryType] QueryType = PGSOQueryType::Other); ---- == Return Value True if `BB` should be optimized for size. == Parameters [cols="1,4"] |=== | Name| Description | *BB* | The basic block to consider for size optimization. | *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. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#