summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ProfileSummaryInfo.cpp
diff options
context:
space:
mode:
authorPiotr Padlewski <piotr.padlewski@gmail.com>2016-09-30 21:05:49 +0000
committerPiotr Padlewski <piotr.padlewski@gmail.com>2016-09-30 21:05:49 +0000
commitf3d122cd02728afd3a2f27f2cc60d434982164d2 (patch)
tree9b8d6bc9d179781fad00b481cdab81314d684aa8 /llvm/lib/Analysis/ProfileSummaryInfo.cpp
parent6237a21d8c6ba859e043baec349ea185fa971473 (diff)
downloadbcm5719-llvm-f3d122cd02728afd3a2f27f2cc60d434982164d2.tar.gz
bcm5719-llvm-f3d122cd02728afd3a2f27f2cc60d434982164d2.zip
NFC fix doxygen comments
llvm-svn: 282950
Diffstat (limited to 'llvm/lib/Analysis/ProfileSummaryInfo.cpp')
-rw-r--r--llvm/lib/Analysis/ProfileSummaryInfo.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/llvm/lib/Analysis/ProfileSummaryInfo.cpp b/llvm/lib/Analysis/ProfileSummaryInfo.cpp
index df1414d6811..5285b7fb9d0 100644
--- a/llvm/lib/Analysis/ProfileSummaryInfo.cpp
+++ b/llvm/lib/Analysis/ProfileSummaryInfo.cpp
@@ -63,9 +63,9 @@ void ProfileSummaryInfo::computeSummary() {
Summary.reset(ProfileSummary::getFromMD(SummaryMD));
}
-// Returns true if the function is a hot function. If it returns false, it
-// either means it is not hot or it is unknown whether F is hot or not (for
-// example, no profile data is available).
+/// Returns true if the function is a hot function. If it returns false, it
+/// either means it is not hot or it is unknown whether F is hot or not (for
+/// example, no profile data is available).
bool ProfileSummaryInfo::isHotFunction(const Function *F) {
computeSummary();
if (!F || !Summary)
@@ -79,9 +79,9 @@ bool ProfileSummaryInfo::isHotFunction(const Function *F) {
(uint64_t)(0.3 * (double)Summary->getMaxFunctionCount()));
}
-// Returns true if the function is a cold function. If it returns false, it
-// either means it is not cold or it is unknown whether F is cold or not (for
-// example, no profile data is available).
+/// Returns true if the function is a cold function. If it returns false, it
+/// either means it is not cold or it is unknown whether F is cold or not (for
+/// example, no profile data is available).
bool ProfileSummaryInfo::isColdFunction(const Function *F) {
computeSummary();
if (!F)
@@ -100,7 +100,7 @@ bool ProfileSummaryInfo::isColdFunction(const Function *F) {
(uint64_t)(0.01 * (double)Summary->getMaxFunctionCount()));
}
-// Compute the hot and cold thresholds.
+/// Compute the hot and cold thresholds.
void ProfileSummaryInfo::computeThresholds() {
if (!Summary)
computeSummary();
OpenPOWER on IntegriCloud