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). llvm-svn: 34142
Showing
- llvm/lib/Bytecode/Writer/SlotCalculator.h 4 additions, 2 deletionsllvm/lib/Bytecode/Writer/SlotCalculator.h
- llvm/lib/Bytecode/Writer/Writer.cpp 9 additions, 8 deletionsllvm/lib/Bytecode/Writer/Writer.cpp
- llvm/lib/Bytecode/Writer/WriterInternals.h 1 addition, 6 deletionsllvm/lib/Bytecode/Writer/WriterInternals.h
Loading
Please register or sign in to comment