Major changes. Now we only compactify individual type planes if it is in
authorChris Lattner <sabre@nondot.org>
Tue, 20 Jan 2004 00:57:32 +0000 (00:57 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 20 Jan 2004 00:57:32 +0000 (00:57 +0000)
commit68e3dbc4933c11ed15dbcdb073e5c28d3f90047f
treee45659027a610c4fb1886048a68a647bbfbf30c0
parenta2b4f93a1b8d22dab6b193d6c73ebfab966ab866
Major changes.  Now we only compactify individual type planes if it is in
fact "profitable" to do so.  This makes compactification "free" for small
programs (ie, it is completely disabled) and even helps large programs by
not having to encode pointless compactification planes.

On 176.gcc, this saves 50K from the bytecode file, which is, alas only
a couple percent.

This concludes my head bashing against the bytecode format, at least for
now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10922 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bytecode/Writer/SlotCalculator.cpp
lib/VMCore/SlotCalculator.cpp