summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bytecode/Reader/Analyzer.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-07-10 08:04:13 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-07-10 08:04:13 +0000
commite5e19daa1b09400ef4de83056d7ee64927165c18 (patch)
tree0cb7def5a7a44394874c652dcee898d351a85251 /llvm/lib/Bytecode/Reader/Analyzer.cpp
parent517d650eb3d83417f2821bca5c79c1dc041bce02 (diff)
downloadbcm5719-llvm-e5e19daa1b09400ef4de83056d7ee64927165c18.tar.gz
bcm5719-llvm-e5e19daa1b09400ef4de83056d7ee64927165c18.zip
Make the VBRSavings percentage make sense (as a fraction of the total
expanded size instead of the file size). Thanks Chris. llvm-svn: 14731
Diffstat (limited to 'llvm/lib/Bytecode/Reader/Analyzer.cpp')
-rw-r--r--llvm/lib/Bytecode/Reader/Analyzer.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Bytecode/Reader/Analyzer.cpp b/llvm/lib/Bytecode/Reader/Analyzer.cpp
index 6defe27b010..08429443f50 100644
--- a/llvm/lib/Bytecode/Reader/Analyzer.cpp
+++ b/llvm/lib/Bytecode/Reader/Analyzer.cpp
@@ -505,7 +505,6 @@ void PrintBytecodeAnalysis(BytecodeAnalysis& bca, std::ostream& Out )
{
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 @@ void PrintBytecodeAnalysis(BytecodeAnalysis& bca, std::ostream& Out )
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 @@ void PrintBytecodeAnalysis(BytecodeAnalysis& bca, std::ostream& Out )
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;
}
}
OpenPOWER on IntegriCloud