The new bytecode format supports emitting strings a special case. This is
authorChris Lattner <sabre@nondot.org>
Wed, 14 Jan 2004 23:36:54 +0000 (23:36 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Jan 2004 23:36:54 +0000 (23:36 +0000)
commit83bb3d2f4e4556dc70b97ae9726d1fc42ed6e765
tree2a51a954e996ff98ef52cdfb8ecdd7451734f2a0
parent9e893e8a3d57492d40c44877736703c9a2882e73
The new bytecode format supports emitting strings a special case.  This is
intended to save size (and does on small programs), but on big programs it
actually increases the size of the program slightly.  The deal is that many
functions end up using the characters that the string contained, and the
characters are no longer in the global constant table, so they have to be
emitted in function specific constant pools.

This pessimization will be fixed in subsequent patches.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10864 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bytecode/Writer/ConstantWriter.cpp
lib/Bytecode/Writer/Writer.cpp
lib/Bytecode/Writer/WriterInternals.h