Skip to content
  1. Apr 17, 2012
  2. Apr 16, 2012
  3. Apr 11, 2012
  4. Apr 05, 2012
  5. Apr 04, 2012
  6. Apr 02, 2012
  7. Mar 29, 2012
  8. Mar 26, 2012
  9. Mar 24, 2012
  10. Mar 22, 2012
  11. Mar 14, 2012
  12. Mar 13, 2012
  13. Mar 12, 2012
  14. Mar 11, 2012
  15. Mar 09, 2012
  16. Mar 08, 2012
  17. Mar 07, 2012
  18. Mar 06, 2012
  19. Mar 04, 2012
  20. Mar 02, 2012
  21. Mar 01, 2012
    • Benjamin Kramer's avatar
      BumpPtrAllocator: Make sure threshold cannot be initialized with a value... · f7e02a0c
      Benjamin Kramer authored
      BumpPtrAllocator: Make sure threshold cannot be initialized with a value smaller than the slab size.
      
      This replaces r151834 with a simpler fix.
      
      llvm-svn: 151842
      f7e02a0c
    • Argyrios Kyrtzidis's avatar
      If BumpPtrAllocator is requested to allocate a size that exceeds the slab size, · 16558f4d
      Argyrios Kyrtzidis authored
      increase the slab size.
      
      llvm-svn: 151834
      16558f4d
    • Chandler Carruth's avatar
      Add the source file with trivial definitions in it that was missing from · 34085df4
      Chandler Carruth authored
      r151822, sorry sorry. =[
      
      We need 'git svn nothave' or some such...
      
      llvm-svn: 151824
      34085df4
    • Chandler Carruth's avatar
      Rewrite LLVM's generalized support library for hashing to follow the API · 1d03a3b6
      Chandler Carruth authored
      of the proposed standard hashing interfaces (N3333), and to use
      a modified and tuned version of the CityHash algorithm.
      
      Some of the highlights of this change:
       -- Significantly higher quality hashing algorithm with very well
          distributed results, and extremely few collisions. Should be close to
          a checksum for up to 64-bit keys. Very little clustering or clumping of
          hash codes, to better distribute load on probed hash tables.
       -- Built-in support for reserved values.
       -- Simplified API that composes cleanly with other C++ idioms and APIs.
       -- Better scaling performance as keys grow. This is the fastest
          algorithm I've found and measured for moderately sized keys (such as
          show up in some of the uniquing and folding use cases)
       -- Support for enabling per-execution seeds to prevent table ordering
          or other artifacts of hashing algorithms to impact the output of
          LLVM. The seeding would make each run different and highlight these
          problems during bootstrap.
      
      This implementation was tested extensively using the SMHasher test
      suite, and pased with flying colors, doing better than the original
      CityHash algorithm even.
      
      I've included a unittest, although it is somewhat minimal at the moment.
      I've also added (or refactored into the proper location) type traits
      necessary to implement this, and converted users of GeneralHash over.
      
      My only immediate concerns with this implementation is the performance
      of hashing small keys. I've already started working to improve this, and
      will continue to do so. Currently, the only algorithms faster produce
      lower quality results, but it is likely there is a better compromise
      than the current one.
      
      Many thanks to Jeffrey Yasskin who did most of the work on the N3333
      paper, pair-programmed some of this code, and reviewed much of it. Many
      thanks also go to Geoff Pike Pike and Jyrki Alakuijala, the original
      authors of CityHash on which this is heavily based, and Austin Appleby
      who created MurmurHash and the SMHasher test suite.
      
      Also thanks to Nadav, Tobias, Howard, Jay, Nick, Ahmed, and Duncan for
      all of the review comments! If there are further comments or concerns,
      please let me know and I'll jump on 'em.
      
      llvm-svn: 151822
      1d03a3b6
  22. Feb 29, 2012
Loading