LLVM  14.0.0git
Functions | Variables
MachineFunctionSplitter.cpp File Reference
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Analysis/ProfileSummaryInfo.h"
#include "llvm/CodeGen/BasicBlockSectionUtils.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/Passes.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Module.h"
#include "llvm/InitializePasses.h"
#include "llvm/Support/CommandLine.h"
Include dependency graph for MachineFunctionSplitter.cpp:

Go to the source code of this file.

Functions

static bool isColdBlock (const MachineBasicBlock &MBB, const MachineBlockFrequencyInfo *MBFI, ProfileSummaryInfo *PSI)
 
 INITIALIZE_PASS (MachineFunctionSplitter, "machine-function-splitter", "Split machine functions using profile information", false, false) MachineFunctionPass *llvm
 

Variables

static cl::opt< unsigned > PercentileCutoff ("mfs-psi-cutoff", cl::desc("Percentile profile summary cutoff used to " "determine cold blocks. Unused if set to zero."), cl::init(999950), cl::Hidden)
 
static cl::opt< unsigned > ColdCountThreshold ("mfs-count-threshold", cl::desc("Minimum number of times a block must be executed to be retained."), cl::init(1), cl::Hidden)
 

Function Documentation

◆ INITIALIZE_PASS()

INITIALIZE_PASS ( MachineFunctionSplitter  ,
"machine-function-splitter"  ,
"Split machine functions using profile information ,
false  ,
false   
)

Definition at line 163 of file MachineFunctionSplitter.cpp.

◆ isColdBlock()

static bool isColdBlock ( const MachineBasicBlock MBB,
const MachineBlockFrequencyInfo MBFI,
ProfileSummaryInfo PSI 
)
static

Variable Documentation

◆ ColdCountThreshold

cl::opt<unsigned> ColdCountThreshold("mfs-count-threshold", cl::desc( "Minimum number of times a block must be executed to be retained."), cl::init(1), cl::Hidden)
static

◆ PercentileCutoff

cl::opt<unsigned> PercentileCutoff("mfs-psi-cutoff", cl::desc("Percentile profile summary cutoff used to " "determine cold blocks. Unused if set to zero."), cl::init(999950), cl::Hidden)
static