20 cl::desc(
"Enable the profile guided size optimizations. "));
24 cl::desc(
"Apply the profile guided size optimizations only "
25 "if the working set size is large (except for cold code.)"));
29 cl::desc(
"Apply the profile guided size optimizations only "
34 cl::desc(
"Apply the profile guided size optimizations only "
35 "to cold code under instrumentation PGO."));
39 cl::desc(
"Apply the profile guided size optimizations only "
40 "to cold code under sample PGO."));
44 cl::desc(
"Apply the profile guided size optimizations only "
45 "to cold code under partial-profile sample PGO."));
49 cl::desc(
"Force the (profiled-guided) size optimizations. "));
53 cl::desc(
"The profile guided size optimization profile summary cutoff "
54 "for instrumentation profile."));
58 cl::desc(
"The profile guided size optimization profile summary cutoff "
59 "for sample profile."));
assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")
LLVM Basic Block Representation.
const Function * getParent() const
Return the enclosing method, or null if none.
BlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate IR basic block frequen...
bool hasOptSize() const
Optimize this function for size (-Os) or minimum size (-Oz).
Analysis providing profile information.
initializer< Ty > init(const Ty &Val)
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI cl::opt< bool > PGSOColdCodeOnlyForSamplePGO
LLVM_ABI cl::opt< bool > PGSOColdCodeOnlyForInstrPGO
LLVM_ABI bool shouldOptimizeForSize(const MachineFunction *MF, ProfileSummaryInfo *PSI, const MachineBlockFrequencyInfo *BFI, PGSOQueryType QueryType=PGSOQueryType::Other)
Returns true if machine function MF is suggested to be size-optimized based on the profile.
bool shouldFuncOptimizeForSizeImpl(const FuncT *F, ProfileSummaryInfo *PSI, BFIT *BFI, PGSOQueryType QueryType)
LLVM_ABI cl::opt< int > PgsoCutoffSampleProf
LLVM_ABI cl::opt< bool > EnablePGSO
LLVM_ABI cl::opt< bool > PGSOColdCodeOnlyForPartialSamplePGO
LLVM_ABI cl::opt< int > PgsoCutoffInstrProf
bool shouldOptimizeForSizeImpl(BlockTOrBlockFreq BBOrBlockFreq, ProfileSummaryInfo *PSI, BFIT *BFI, PGSOQueryType QueryType)
LLVM_ABI cl::opt< bool > ForcePGSO
LLVM_ABI cl::opt< bool > PGSOLargeWorkingSetSizeOnly
LLVM_ABI cl::opt< bool > PGSOColdCodeOnly