diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-31 00:34:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-31 00:34:05 +0000 |
commit | 9061d703256f8732e9333f430daef2f69a02db5a (patch) | |
tree | d6de4cfb0a96b49db8bef74e4bb90c886699e705 /llvm/tools/llvm-prof/llvm-prof.cpp | |
parent | a36f81a3eafaff7c43412bfcad80a3f40cd0cd2f (diff) | |
download | bcm5719-llvm-9061d703256f8732e9333f430daef2f69a02db5a.tar.gz bcm5719-llvm-9061d703256f8732e9333f430daef2f69a02db5a.zip |
never print zero executions blocks
llvm-svn: 9626
Diffstat (limited to 'llvm/tools/llvm-prof/llvm-prof.cpp')
-rw-r--r-- | llvm/tools/llvm-prof/llvm-prof.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-prof/llvm-prof.cpp b/llvm/tools/llvm-prof/llvm-prof.cpp index 80eb36bd63d..672e0f69226 100644 --- a/llvm/tools/llvm-prof/llvm-prof.cpp +++ b/llvm/tools/llvm-prof/llvm-prof.cpp @@ -159,6 +159,7 @@ int main(int argc, char **argv) { unsigned BlocksToPrint = Counts.size(); if (BlocksToPrint > 20) BlocksToPrint = 20; for (unsigned i = 0; i != BlocksToPrint; ++i) { + if (Counts[i].second == 0) break; Function *F = Counts[i].first->getParent(); printf("%3d. %5.2f%% %5u/%llu\t%s() - %s\n", i+1, Counts[i].second/(double)TotalExecutions*100, |