aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Writer/WriterInternals.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-01 07:05:31 +0000
committerChris Lattner <sabre@nondot.org>2003-12-01 07:05:31 +0000
commit8d1dbd2134d2bcd83f63c504c1f8f019c0342f92 (patch)
treedfdab9d1fae48af6cbe07615745c6120c7d17524 /lib/Bytecode/Writer/WriterInternals.h
parentd540e2c9956a7fca733af7db6e3bbcb29aedbb4f (diff)
Emit & read more compressed bytecode by not emitting a bytecodeblock for
each basic block in function. Instead, just emit a stream of instructions, chopping up basic blocks based on when we find terminator instructions. This saves a fairly substantial chunk of bytecode space. In stripped, sample cases, for example, we get this reduction in size: 197.parser: 163036 -> 137180: 18.8% reduction 254.gap : 844936 -> 689392: 22.6% 255.vortex: 621724 -> 528444: 17.7% ... Not bad for something this simple. :) Note that this doesn't require a new bytecode version number at all, though version 1.1 should not need to support the old format. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Writer/WriterInternals.h')
-rw-r--r--lib/Bytecode/Writer/WriterInternals.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Bytecode/Writer/WriterInternals.h b/lib/Bytecode/Writer/WriterInternals.h
index 8cb4bfd8d6..29465157c7 100644
--- a/lib/Bytecode/Writer/WriterInternals.h
+++ b/lib/Bytecode/Writer/WriterInternals.h
@@ -36,7 +36,6 @@ public:
protected:
void outputConstants(bool isFunction);
void outputFunction(const Function *F);
- void processBasicBlock(const BasicBlock &BB);
void processInstruction(const Instruction &I);
private :