aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer/ConstantWriter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-18 21:08:52 +0000
committerChris Lattner <sabre@nondot.org>2004-01-18 21:08:52 +0000
commitcf3e67f70a558792e2764bc107b245f50868288f (patch)
tree0611219a1769294dd7f8d8ec8b823cdd9dbb7fa5 /lib/Bytecode/Writer/ConstantWriter.cpp
parent89e025387eee7f3f03749fd54ab5e6ce36495c0a (diff)
Add support for writing bytecode files with compactiontables for bytecode files.
This shrinks the bytecode file for 176.gcc by about 200K (10%), and 254.gap by about 167K, a 25% reduction. There is still a lot of room for improvement in the encoding of the compaction table. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10915 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/ConstantWriter.cpp')
-rw-r--r--lib/Bytecode/Writer/ConstantWriter.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/Bytecode/Writer/ConstantWriter.cpp b/lib/Bytecode/Writer/ConstantWriter.cpp
index 088a5b787b..2b75b9b4a7 100644
--- a/lib/Bytecode/Writer/ConstantWriter.cpp
+++ b/lib/Bytecode/Writer/ConstantWriter.cpp
@@ -26,11 +26,6 @@ ConstantBytes("bytecodewriter", "Bytes of constants");
static Statistic<>
NumConstants("bytecodewriter", "Number of constants");
-static Statistic<>
-NumStrConstants("bytecodewriter", "Number of string constants");
-static Statistic<>
-NumStrBytes("bytecodewriter", "Number of string constant bytes");
-
void BytecodeWriter::outputType(const Type *T) {
TypeBytes -= Out.size();
@@ -231,7 +226,6 @@ void BytecodeWriter::outputConstantStrings() {
output_vbr(Type::VoidTyID, Out);
ConstantBytes -= Out.size();
- NumStrBytes -= Out.size();;
// Emit all of the strings.
for (I = Table.string_begin(); I != E; ++I) {
@@ -246,8 +240,6 @@ void BytecodeWriter::outputConstantStrings() {
output_data(Val.c_str(), Val.c_str()+Val.size(), Out);
++NumConstants;
- ++NumStrConstants;
}
ConstantBytes += Out.size();
- NumStrBytes += Out.size();;
}