summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-profdata/llvm-profdata.cpp
diff options
context:
space:
mode:
authorXinliang David Li <davidxl@google.com>2016-01-16 05:29:49 +0000
committerXinliang David Li <davidxl@google.com>2016-01-16 05:29:49 +0000
commit6ed987dffe8365b63e938440b1c5d9960511107d (patch)
tree59969cad9d77b7a606440951c7b8aa2268ba50be /llvm/tools/llvm-profdata/llvm-profdata.cpp
parent954c95c08b87d4042ed51e5b936bcfd20564ca4f (diff)
downloadbcm5719-llvm-6ed987dffe8365b63e938440b1c5d9960511107d.tar.gz
bcm5719-llvm-6ed987dffe8365b63e938440b1c5d9960511107d.zip
[PGO] fix a bug in profile summary computation
Entry block count was not counted and is corrected. Also introduce a new metric that is MaxInternalBlockCount which show command shows (as before). llvm-svn: 257987
Diffstat (limited to 'llvm/tools/llvm-profdata/llvm-profdata.cpp')
-rw-r--r--llvm/tools/llvm-profdata/llvm-profdata.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp
index cbe28a16250..c6efacb3554 100644
--- a/llvm/tools/llvm-profdata/llvm-profdata.cpp
+++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp
@@ -333,7 +333,7 @@ static int showInstrProfile(std::string Filename, bool ShowCounts,
OS << "Functions shown: " << ShownFunctions << "\n";
OS << "Total functions: " << PS.getNumFunctions() << "\n";
OS << "Maximum function count: " << PS.getMaxFunctionCount() << "\n";
- OS << "Maximum internal block count: " << PS.getMaxBlockCount() << "\n";
+ OS << "Maximum internal block count: " << PS.getMaxInternalBlockCount() << "\n";
if (ShowDetailedSummary) {
OS << "Detailed summary:\n";
OpenPOWER on IntegriCloud