[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Analyzer.cpp
LLVM
llvm at cs.uiuc.edu
Sat Jul 10 03:05:22 PDT 2004
Changes in directory llvm/lib/Bytecode/Reader:
Analyzer.cpp updated: 1.9 -> 1.10
---
Log message:
Make the VBRSavings percentage make sense (as a fraction of the total
expanded size instead of the file size). Thanks Chris.
---
Diffs of the changes: (+2 -3)
Index: llvm/lib/Bytecode/Reader/Analyzer.cpp
diff -u llvm/lib/Bytecode/Reader/Analyzer.cpp:1.9 llvm/lib/Bytecode/Reader/Analyzer.cpp:1.10
--- llvm/lib/Bytecode/Reader/Analyzer.cpp:1.9 Sun Jul 4 19:57:50 2004
+++ llvm/lib/Bytecode/Reader/Analyzer.cpp Sat Jul 10 03:04:13 2004
@@ -505,7 +505,6 @@
{
print(Out, "Bytecode Analysis Of Module", bca.ModuleId);
print(Out, "File Size", bca.byteSize);
- print(Out, "Bytecode Compression Index",std::string("TBD"));
print(Out, "Number Of Bytecode Blocks", bca.numBlocks);
print(Out, "Number Of Types", bca.numTypes);
print(Out, "Number Of Values", bca.numValues);
@@ -534,7 +533,7 @@
print(Out, "Number of VBR Expanded Bytes", bca.vbrExpdBytes);
print(Out, "VBR Savings",
double(bca.vbrExpdBytes)-double(bca.vbrCompBytes),
- double(bca.byteSize));
+ double(bca.vbrExpdBytes));
if ( bca.detailedResults ) {
print(Out, "Module Bytes",
@@ -589,7 +588,7 @@
print(Out, "Number of VBR Expanded Bytes", I->second.vbrExpdBytes);
print(Out, "VBR Savings",
double(I->second.vbrExpdBytes)-double(I->second.vbrCompBytes),
- double(I->second.byteSize));
+ double(I->second.vbrExpdBytes));
++I;
}
}
More information about the llvm-commits
mailing list