aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/Analyzer.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-08-24 22:45:32 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-08-24 22:45:32 +0000
commit3120e714e6e8fdfe04e4e6b7f0246c0a591bda2a (patch)
treeef6f8d4e70c5e2db92c5e25b7fd8e4ce96e10b8b /lib/Bytecode/Reader/Analyzer.cpp
parentc4985ba93ee5e9cd8d4b6fcc6571607089274770 (diff)
Rearrange output a little to make it nicer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16036 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/Analyzer.cpp')
-rw-r--r--lib/Bytecode/Reader/Analyzer.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/Bytecode/Reader/Analyzer.cpp b/lib/Bytecode/Reader/Analyzer.cpp
index 4eb5cd43ff..378b729699 100644
--- a/lib/Bytecode/Reader/Analyzer.cpp
+++ b/lib/Bytecode/Reader/Analyzer.cpp
@@ -341,7 +341,7 @@ public:
if (os)
*os << " } END BLOCK: Function\n";
currFunc->density = double(currFunc->byteSize) /
- double(currFunc->numInstructions+currFunc->numBasicBlocks);
+ double(currFunc->numInstructions);
if ( bca.progressiveVerify ) {
try {
@@ -671,14 +671,14 @@ void PrintBytecodeAnalysis(BytecodeAnalysis& bca, std::ostream& Out )
print(Out, "Maximum Type Slot Number", bca.maxTypeSlot);
print(Out, "Maximum Value Slot Number", bca.maxValueSlot);
- print(Out, "File Density (bytes/def)", bca.fileDensity);
- print(Out, "Globals Density (bytes/def)", bca.globalsDensity);
- print(Out, "Function Density (bytes/func)", bca.functionDensity);
- print(Out, "Number of VBR 32-bit Integers", bca.vbrCount32);
- print(Out, "Number of VBR 64-bit Integers", bca.vbrCount64);
- print(Out, "Number of VBR Compressed Bytes", bca.vbrCompBytes);
- print(Out, "Number of VBR Expanded Bytes", bca.vbrExpdBytes);
- print(Out, "VBR Savings",
+ print(Out, "Bytes Per Value ", bca.fileDensity);
+ print(Out, "Bytes Per Global", bca.globalsDensity);
+ print(Out, "Bytes Per Function", bca.functionDensity);
+ print(Out, "# of VBR 32-bit Integers", bca.vbrCount32);
+ print(Out, "# of VBR 64-bit Integers", bca.vbrCount64);
+ print(Out, "# of VBR Compressed Bytes", bca.vbrCompBytes);
+ print(Out, "# of VBR Expanded Bytes", bca.vbrExpdBytes);
+ print(Out, "Bytes Saved With VBR",
double(bca.vbrExpdBytes)-double(bca.vbrCompBytes),
double(bca.vbrExpdBytes));
@@ -695,19 +695,19 @@ void PrintBytecodeAnalysis(BytecodeAnalysis& bca, std::ostream& Out )
Out << "\nFunction: " << I->second.name << "\n";
print(Out, "Type:", I->second.description);
print(Out, "Byte Size", I->second.byteSize);
+ print(Out, "Basic Blocks", I->second.numBasicBlocks);
print(Out, "Instructions", I->second.numInstructions);
print(Out, "Long Instructions", I->second.longInstructions);
+ print(Out, "Operands", I->second.numOperands);
print(Out, "Instruction Size", I->second.instructionSize);
print(Out, "Average Instruction Size",
double(I->second.instructionSize)/double(I->second.numInstructions));
- print(Out, "Basic Blocks", I->second.numBasicBlocks);
- print(Out, "Operand", I->second.numOperands);
- print(Out, "Function Density", I->second.density);
- print(Out, "Number of VBR 32-bit Integers", I->second.vbrCount32);
- print(Out, "Number of VBR 64-bit Integers", I->second.vbrCount64);
- print(Out, "Number of VBR Compressed Bytes", I->second.vbrCompBytes);
- print(Out, "Number of VBR Expanded Bytes", I->second.vbrExpdBytes);
- print(Out, "VBR Savings",
+ print(Out, "Bytes Per Instruction", I->second.density);
+ print(Out, "# of VBR 32-bit Integers", I->second.vbrCount32);
+ print(Out, "# of VBR 64-bit Integers", I->second.vbrCount64);
+ print(Out, "# of VBR Compressed Bytes", I->second.vbrCompBytes);
+ print(Out, "# of VBR Expanded Bytes", I->second.vbrExpdBytes);
+ print(Out, "Bytes Saved With VBR",
double(I->second.vbrExpdBytes)-double(I->second.vbrCompBytes),
double(I->second.vbrExpdBytes));
++I;