optimize constant layout. This fixes encoding of 181.mcf (by ensuring
authorChris Lattner <sabre@nondot.org>
Fri, 4 May 2007 05:21:47 +0000 (05:21 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 4 May 2007 05:21:47 +0000 (05:21 +0000)
commit6da91d3c2c138eb1d9739701a1314ba3580df897
tree3f8b653b16e829b3c43084b15430466ee6b4149c
parent12f535b937cb35a5cc2b3cc67995f09b9e8e1326
optimize constant layout.  This fixes encoding of 181.mcf (by ensuring
integer structure idx's are emitted before constant expr geps) and shrinks
files slightly.  For example kc++ shrinks from 4326188 to 4240128 bytes.

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