diff options
author | Wan Xiaofei <xiaofei.wan@intel.com> | 2013-10-22 08:02:02 +0000 |
---|---|---|
committer | Wan Xiaofei <xiaofei.wan@intel.com> | 2013-10-22 08:02:02 +0000 |
commit | 2f8dc08b8cf4a18c09ec7ca8eb2b619f22cbfbd0 (patch) | |
tree | 0135bc6787a58f067aeab203d85c6cc6a2772c6d /llvm/lib/Support/ErrorHandling.cpp | |
parent | 47b3bd3fbb131b47268af300a65af52c159052dc (diff) | |
download | llvm-2f8dc08b8cf4a18c09ec7ca8eb2b619f22cbfbd0.zip llvm-2f8dc08b8cf4a18c09ec7ca8eb2b619f22cbfbd0.tar.gz llvm-2f8dc08b8cf4a18c09ec7ca8eb2b619f22cbfbd0.tar.bz2 |
Using FoldingSet in SelectionDAG::getVTList.
VTList has a long life cycle through the module and getVTList is frequently called. In current getVTList, sequential search over a std::vector is used, this is inefficient in big module.
This patch use FoldingSet to implement hashing mechanism when searching.
Reviewer: Nadav Rotem
Test : Pass unit tests & LNT test suite
llvm-svn: 193150
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
0 files changed, 0 insertions, 0 deletions