forked from OSchip/llvm-project
[llvm][NFC] const-ed MachineBlockFrequencyInfo::isIrrLoopHeader
This commit is contained in:
parent
a305d25029
commit
111a018b36
|
@ -64,7 +64,7 @@ public:
|
|||
Optional<uint64_t> getBlockProfileCount(const MachineBasicBlock *MBB) const;
|
||||
Optional<uint64_t> getProfileCountFromFreq(uint64_t Freq) const;
|
||||
|
||||
bool isIrrLoopHeader(const MachineBasicBlock *MBB);
|
||||
bool isIrrLoopHeader(const MachineBasicBlock *MBB) const;
|
||||
|
||||
void setBlockFreq(const MachineBasicBlock *MBB, uint64_t Freq);
|
||||
|
||||
|
|
|
@ -241,8 +241,8 @@ MachineBlockFrequencyInfo::getProfileCountFromFreq(uint64_t Freq) const {
|
|||
return MBFI ? MBFI->getProfileCountFromFreq(F, Freq) : None;
|
||||
}
|
||||
|
||||
bool
|
||||
MachineBlockFrequencyInfo::isIrrLoopHeader(const MachineBasicBlock *MBB) {
|
||||
bool MachineBlockFrequencyInfo::isIrrLoopHeader(
|
||||
const MachineBasicBlock *MBB) const {
|
||||
assert(MBFI && "Expected analysis to be available");
|
||||
return MBFI->isIrrLoopHeader(MBB);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue