shave another 150K off of kc++, by using a 7-bit encoding for BB names
authorChris Lattner <sabre@nondot.org>
Fri, 4 May 2007 20:58:35 +0000 (20:58 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 4 May 2007 20:58:35 +0000 (20:58 +0000)
commit2453f71ae1a8c465b0f594a7a5ee6c9ba7074035
treec23c86480553cbbd2351b6e2fe0d800859fbd6eb
parent596983036159583d259cde72486897f60a96fe09
shave another 150K off of kc++, by using a 7-bit encoding for BB names
where we can.  This shrinks kc++'s down to 3368K, with a VST record of:

  Block ID #14 (VALUE_SYMTAB):
      Num Instances: 2345
         Total Size: 1.29508e+07b/1.61885e+06B/404713W
       Average Size: 5522.73b/690.342B/172.585W
          % of file: 48.0645
  Tot/Avg SubBlocks: 0/0
    Tot/Avg Abbrevs: 7035/3
    Tot/Avg Records: 120924/51.5667
      % Abbrev Recs: 100

Isn't it nice to be able to optimizer bc size without touching the reader? :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36759 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Bitcode/Writer/BitcodeWriter.cpp