The ModuleLevel vector is often quite sparse. Switch it to a DenseMap. This
authorChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 06:38:19 +0000 (06:38 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 06:38:19 +0000 (06:38 +0000)
commit13dc07c7dc9ca99634fe8342ec4748536b31d88f
tree2a58d5f322bf63fdd0192c7da60910c785e92ee5
parenta76b1febd4fd258e8054395adedcbd477668d956
The ModuleLevel vector is often quite sparse.  Switch it to a DenseMap.  This
speeds up bcwriting of 447.dealII by 40%, from 4.63s to 3.32s.

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