[#llvm-shouldOptimizeForSize-0d] = xref:llvm.adoc[llvm]::shouldOptimizeForSize :relfileprefix: ../ :mrdocs: Returns true if machine function `MF` is suggested to be size‐optimized based on the profile. == Synopsis Declared in `<llvm/CodeGen/MachineSizeOpts.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool shouldOptimizeForSize( xref:llvm/MachineFunction.adoc[MachineFunction] const* MF, xref:llvm/ProfileSummaryInfo.adoc[ProfileSummaryInfo]* PSI, xref:llvm/MachineBlockFrequencyInfo.adoc[MachineBlockFrequencyInfo] const* BFI, xref:llvm/PGSOQueryType.adoc[PGSOQueryType] QueryType = PGSOQueryType::Other); ---- == Return Value True if `MF` is suggested to be size‐optimized. == Parameters [cols="1,4"] |=== | Name| Description | *MF* | The machine function to consider for size optimization. | *PSI* | Profile summary information used to classify hot/cold code. | *BFI* | Machine block frequency information for `MF.` | *QueryType* | The caller context of this size‐optimization query. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#