Change the table datastructure to be a vector<smallvector>, instead of
authorChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 07:42:59 +0000 (07:42 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 10 Feb 2007 07:42:59 +0000 (07:42 +0000)
commit863da4c4f59c8c2df5219a8dd1409860e25bf6a4
tree5c5432ee61ec0de0ce155e2ee4c40c7b8fca55f3
parentae052aa5a768d80757df981971ad560f0d9e0216
Change the table datastructure to be a vector<smallvector>, instead of
vector<vector> to avoid allocations.  This speeds up bcwriting of 447.dealII
from 0.8276 to 0.7637s (8.4%).

This concludes this round of proding the bcwriter into submission.  Final
speedup from 24.4s to 0.7637s (32x).

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