Make the VBRSavings percentage make sense (as a fraction of the total
authorReid Spencer <rspencer@reidspencer.com>
Sat, 10 Jul 2004 08:04:13 +0000 (08:04 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 10 Jul 2004 08:04:13 +0000 (08:04 +0000)
expanded size instead of the file size). Thanks Chris.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14731 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Bytecode/Reader/Analyzer.cpp

index 6defe27b010e5e7f34bbbebd597afd4937271adc..08429443f5037c9c06035bd533a2870aa3674ad7 100644 (file)
@@ -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;
     }
   }