[llvm-commits] [llvm] r163241 - /llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
Jan Wen Voung
jvoung at google.com
Wed Sep 5 13:55:57 PDT 2012
Author: jvoung
Date: Wed Sep 5 15:55:57 2012
New Revision: 163241
URL: http://llvm.org/viewvc/llvm-project?rev=163241&view=rev
Log:
revert the additional stuff.
Modified:
llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
Modified: llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp?rev=163241&r1=163240&r2=163241&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp (original)
+++ llvm/trunk/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp Wed Sep 5 15:55:57 2012
@@ -588,15 +588,13 @@
std::reverse(FreqPairs.begin(), FreqPairs.end());
outs() << "\tRecord Histogram:\n";
- outs() << "\t\t Count # Bits Bytes-Per %% Abv Record Kind\n";
+ outs() << "\t\t Count # Bits %% Abv Record Kind\n";
for (unsigned i = 0, e = FreqPairs.size(); i != e; ++i) {
const PerRecordStats &RecStats = Stats.CodeFreq[FreqPairs[i].second];
- outs() <<
- format("\t\t%7d %9lu %9.2f",
- RecStats.NumInstances,
- (unsigned long)RecStats.TotalBits,
- ((double)RecStats.TotalBits/RecStats.NumInstances)/8.0);
+ outs() << format("\t\t%7d %9.2f",
+ RecStats.NumInstances,
+ (unsigned long)RecStats.TotalBits);
if (RecStats.NumAbbrev)
outs() <<
More information about the llvm-commits
mailing list