Go to the documentation of this file.
12 #ifndef LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H
13 #define LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H
20 class ProfileSummaryInfo;
21 class BlockFrequencyInfo;
22 class TargetTransformInfo;
23 class OptimizationRemarkEmitter;
24 class AssumptionCache;
26 class CodeExtractorAnalysisCache;
40 : PSI(ProfSI), GetBFI(GBFI), GetTTI(GTTI), GetORE(GORE), LookupAC(LAC) {}
44 bool isFunctionCold(
const Function &
F)
const;
45 bool shouldOutlineFrom(
const Function &
F)
const;
46 bool outlineColdRegions(
Function &
F,
bool HasProfileSummary);
68 #endif // LLVM_TRANSFORMS_IPO_HOTCOLDSPLITTING_H
A set of analyses that are preserved following a run of a transformation pass.
This is an optimization pass for GlobalISel generic memory operations.
We currently emits eax Perhaps this is what we really should generate is Is imull three or four cycles eax eax The current instruction priority is based on pattern complexity The former is more complex because it folds a load so the latter will not be emitted Perhaps we should use AddedComplexity to give LEA32r a higher priority We should always try to match LEA first since the LEA matching code does some estimate to determine whether the match is profitable if we care more about code then imull is better It s two bytes shorter than movl leal On a Pentium M
A CRTP mix-in to automatically provide informational APIs needed for passes.
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM)
Concrete subclass of DominatorTreeBase that is used to compute a normal dominator tree.
HotColdSplitting(ProfileSummaryInfo *ProfSI, function_ref< BlockFrequencyInfo *(Function &)> GBFI, function_ref< TargetTransformInfo &(Function &)> GTTI, std::function< OptimizationRemarkEmitter &(Function &)> *GORE, function_ref< AssumptionCache *(Function &)> LAC)
Pass to outline cold regions.
BlockFrequencyInfo pass uses BlockFrequencyInfoImpl implementation to estimate IR basic block frequen...
Analysis providing profile information.
An efficient, type-erasing, non-owning reference to a callable.
print Print MemDeps of function
A Module instance is used to store all the information related to an LLVM module.
A cache of @llvm.assume calls within a function.
Machine Check Debug Module
A container for analyses that lazily runs them and caches their results.