diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/CodeGen/MBFIWrapper.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/CodeGen/MBFIWrapper.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/contrib/llvm-project/llvm/lib/CodeGen/MBFIWrapper.cpp b/contrib/llvm-project/llvm/lib/CodeGen/MBFIWrapper.cpp index 5b388be27839..e9f16329b57f 100644 --- a/contrib/llvm-project/llvm/lib/CodeGen/MBFIWrapper.cpp +++ b/contrib/llvm-project/llvm/lib/CodeGen/MBFIWrapper.cpp @@ -38,25 +38,13 @@ MBFIWrapper::getBlockProfileCount(const MachineBasicBlock *MBB) const { // Modified block frequency also impacts profile count. So we should compute // profile count from new block frequency if it has been changed. if (I != MergedBBFreq.end()) - return MBFI.getProfileCountFromFreq(I->second.getFrequency()); + return MBFI.getProfileCountFromFreq(I->second); return MBFI.getBlockProfileCount(MBB); } -raw_ostream & MBFIWrapper::printBlockFreq(raw_ostream &OS, - const MachineBasicBlock *MBB) const { - return MBFI.printBlockFreq(OS, getBlockFreq(MBB)); -} - -raw_ostream & MBFIWrapper::printBlockFreq(raw_ostream &OS, - const BlockFrequency Freq) const { - return MBFI.printBlockFreq(OS, Freq); -} - void MBFIWrapper::view(const Twine &Name, bool isSimple) { MBFI.view(Name, isSimple); } -uint64_t MBFIWrapper::getEntryFreq() const { - return MBFI.getEntryFreq(); -} +BlockFrequency MBFIWrapper::getEntryFreq() const { return MBFI.getEntryFreq(); } |
