[llvm] r197839 - BlockFrequencyInfo: Readded getEntryFreq.
Yuchen Wu
yuchenericwu at hotmail.com
Fri Dec 20 14:11:11 PST 2013
Author: ywu
Date: Fri Dec 20 16:11:11 2013
New Revision: 197839
URL: http://llvm.org/viewvc/llvm-project?rev=197839&view=rev
Log:
BlockFrequencyInfo: Readded getEntryFreq.
Modified:
llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h
llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp
Modified: llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h?rev=197839&r1=197838&r2=197839&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h (original)
+++ llvm/trunk/include/llvm/Analysis/BlockFrequencyInfo.h Fri Dec 20 16:11:11 2013
@@ -59,6 +59,8 @@ public:
// BB and print it to OS.
raw_ostream &printBlockFreq(raw_ostream &OS, const BasicBlock *BB) const;
+ uint64_t getEntryFreq() const;
+
};
}
Modified: llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp?rev=197839&r1=197838&r2=197839&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp (original)
+++ llvm/trunk/lib/Analysis/BlockFrequencyInfo.cpp Fri Dec 20 16:11:11 2013
@@ -170,3 +170,7 @@ BlockFrequencyInfo::printBlockFreq(raw_o
const BasicBlock *BB) const {
return BFI->printBlockFreq(OS, BB);
}
+
+uint64_t BlockFrequencyInfo::getEntryFreq() const {
+ return BFI->getEntryFreq();
+}
More information about the llvm-commits
mailing list