Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix several const-correctness issues, resolving some -Wcast-qual warnings. | Dan Gohman | 2008-08-05 | 1 | -2/+2 |
| | | | | llvm-svn: 54349 | ||||
* | Remove attribution from file headers, per discussion on llvmdev. | Chris Lattner | 2007-12-29 | 1 | -2/+2 |
| | | | | llvm-svn: 45418 | ||||
* | make smallptrset more const and type correct, which caught a few | Chris Lattner | 2007-11-06 | 1 | -2/+2 |
| | | | | | | minor bugs. llvm-svn: 43782 | ||||
* | Properly use const qualifiers | Anton Korobeynikov | 2007-08-15 | 1 | -1/+1 |
| | | | | llvm-svn: 41111 | ||||
* | When clearing a SmallPtrSet, if the set had a huge capacity, but the | Chris Lattner | 2007-08-05 | 1 | -0/+18 |
| | | | | | | | | | | 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 | ||||
* | Allow SmallPtrSet to hold pointers to const data. | Owen Anderson | 2007-07-27 | 1 | -20/+20 |
| | | | | llvm-svn: 40556 | ||||
* | Make the copy constructor of SmallPtrSet much faster. | Owen Anderson | 2007-07-24 | 1 | -22/+12 |
| | | | | llvm-svn: 40474 | ||||
* | Remember to free the heap allocated array if we're not going to use it. | Owen Anderson | 2007-07-19 | 1 | -2/+4 |
| | | | | llvm-svn: 40043 | ||||
* | Fix an issue where assignments that caused a SmallPtrSet to become non-small | Owen Anderson | 2007-07-18 | 1 | -4/+8 |
| | | | | | | | would result in calling realloc() on a null pointer. Instead, if we encounter this situation, make a normal call to malloc(). llvm-svn: 40014 | ||||
* | Unbreak the build by putting calls to free into the implementation file and | Reid Spencer | 2007-07-17 | 1 | -0/+7 |
| | | | | | | having that implementation file #include <cstdlib>. llvm-svn: 39952 | ||||
* | Use realloc() to (potentially) resize the contents of SmallPtrSet in place. | Owen Anderson | 2007-07-16 | 1 | -10/+9 |
| | | | | llvm-svn: 39926 | ||||
* | Make the assignment operator for SmallPtrSet much faster for normal cases. | Owen Anderson | 2007-07-09 | 1 | -36/+21 |
| | | | | llvm-svn: 38474 | ||||
* | Make the assignment operator for SmallPtrSet return a reference, and fix a ↵ | Owen Anderson | 2007-07-09 | 1 | -1/+1 |
| | | | | | | | | | | long-standing bug in the copy ctor while I'm at it. Thanks to Chris Lattner for help with this patch. llvm-svn: 38470 | ||||
* | Fix an error in the assignment operator that was causing an infinite loop in ↵ | Owen Anderson | 2007-07-09 | 1 | -3/+11 |
| | | | | | | | | GVNPRE.cpp. Patch by Chis Lattner. llvm-svn: 38467 | ||||
* | implement operator= for smallptrset | Chris Lattner | 2007-07-09 | 1 | -0/+36 |
| | | | | llvm-svn: 38460 | ||||
* | Fix a bug in SmallPtrSet that was causing GVNPRE to enter an infinite loop. | Owen Anderson | 2007-06-22 | 1 | -1/+1 |
| | | | | llvm-svn: 37697 | ||||
* | Two changes: | Chris Lattner | 2007-06-21 | 1 | -4/+5 |
| | | | | | | | | | 1. Make SmallPtrSet::erase faster in the small case by replacing a memmove with a pointer copy. 2. Fix a bug where the null terminator at the end of the array in the small case was not copied llvm-svn: 37696 | ||||
* | Fix PR1329. | Jeff Cohen | 2007-04-14 | 1 | -0/+28 |
| | | | | llvm-svn: 36016 | ||||
* | do not let the table fill up with tombstones. | Chris Lattner | 2007-02-07 | 1 | -1/+5 |
| | | | | llvm-svn: 33973 | ||||
* | Fix a bug in smallptrset::erase: in the small case, return true if the | Chris Lattner | 2007-02-05 | 1 | -1/+1 |
| | | | | | | element was in the set. llvm-svn: 33931 | ||||
* | implement SmallPtrSet::erase | Chris Lattner | 2007-01-27 | 1 | -0/+27 |
| | | | | llvm-svn: 33581 | ||||
* | add a note | Chris Lattner | 2007-01-27 | 1 | -1/+2 |
| | | | | llvm-svn: 33578 | ||||
* | Add a new SmallSet ADT specialized for pointers. | Chris Lattner | 2007-01-27 | 1 | -0/+113 |
llvm-svn: 33577 |