21 auto I = MergedBBFreq.find(
MBB);
23 if (
I != MergedBBFreq.end())
26 return MBFI.getBlockFreq(
MBB);
31 MergedBBFreq[
MBB] =
F;
34std::optional<uint64_t>
36 auto I = MergedBBFreq.find(
MBB);
40 if (
I != MergedBBFreq.end())
41 return MBFI.getProfileCountFromFreq(
I->second);
43 return MBFI.getBlockProfileCount(
MBB);
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
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
This is an optimization pass for GlobalISel generic memory operations.