Skip to content
  • Chris Lattner's avatar
    When clearing a SmallPtrSet, if the set had a huge capacity, but the · 44f7d3aa
    Chris Lattner authored
    contents of the set were small, deallocate and shrink the set.  This
    avoids having us to memset as much data, significantly speeding up
    some pathological cases.  For example, this speeds up the verifier
    from 0.3899s to 0.0763 (5.1x) on the testcase from PR1432 in a 
    release build.
    
    llvm-svn: 40837
    44f7d3aa
Loading