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:
parent
ad5c9da686
commit
f97e36afb8
@ -64,7 +64,7 @@ public:
|
|||||||
Optional<uint64_t> getBlockProfileCount(const MachineBasicBlock *MBB) const;
|
Optional<uint64_t> getBlockProfileCount(const MachineBasicBlock *MBB) const;
|
||||||
Optional<uint64_t> getProfileCountFromFreq(uint64_t Freq) 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);
|
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;
|
return MBFI ? MBFI->getProfileCountFromFreq(F, Freq) : None;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool
|
bool MachineBlockFrequencyInfo::isIrrLoopHeader(
|
||||||
MachineBlockFrequencyInfo::isIrrLoopHeader(const MachineBasicBlock *MBB) {
|
const MachineBasicBlock *MBB) const {
|
||||||
assert(MBFI && "Expected analysis to be available");
|
assert(MBFI && "Expected analysis to be available");
|
||||||
return MBFI->isIrrLoopHeader(MBB);
|
return MBFI->isIrrLoopHeader(MBB);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user