mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-29 22:50:55 +00:00
never print zero executions blocks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9626 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3b7f41631d
commit
9088de7357
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user