21 auto I = MergedBBFreq.find(
MBB);
23 if (
I != MergedBBFreq.end())
31 MergedBBFreq[
MBB] =
F;
34std::optional<uint64_t>
36 auto I = MergedBBFreq.find(
MBB);
40 if (
I != MergedBBFreq.end())
static bool isSimple(Instruction *I)
std::optional< uint64_t > getBlockProfileCount(const MachineBasicBlock *MBB) const
BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const
void view(const Twine &Name, bool isSimple=true)
void setBlockFreq(const MachineBasicBlock *MBB, BlockFrequency F)
BlockFrequency getEntryFreq() const
void view(const Twine &Name, bool isSimple=true) const
Pop up a ghostview window with the current block frequency propagation rendered using dot.
BlockFrequency getBlockFreq(const MachineBasicBlock *MBB) const
getblockFreq - Return block frequency.
std::optional< uint64_t > getProfileCountFromFreq(BlockFrequency Freq) const
BlockFrequency getEntryFreq() const
Divide a block's BlockFrequency::getFrequency() value by this value to obtain the entry block - relat...
std::optional< uint64_t > getBlockProfileCount(const MachineBasicBlock *MBB) const
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
This is an optimization pass for GlobalISel generic memory operations.