1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00

[llvm][NFC] const-ed MachineBlockFrequencyInfo::isIrrLoopHeader

This commit is contained in:
Mircea Trofin 2020-07-22 13:05:58 -07:00
parent ad5c9da686
commit f97e36afb8
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);
}