llvm.org GIT mirror llvm / d3fb671
Have internal df_iterator's use SmallPtrSet instead of std::set. This provides compile time speedups to any pass using df_iterator. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37694 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 13 years ago
1 changed file(s) with 5 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
3434
3535 #include "llvm/ADT/GraphTraits.h"
3636 #include "llvm/ADT/iterator"
37 #include "llvm/ADT/SmallPtrSet.h"
3738 #include
3839 #include
3940
5758
5859
5960 // Generic Depth First Iterator
60 template
61 std::set::NodeType*>,
61 template,
62 class SetType = llvm::SmallPtrSet::NodeType*, 8>,
6263 bool ExtStorage = false, class GT = GraphTraits >
6364 class df_iterator : public forward_iterator,
6465 public df_iterator_storage {
188189
189190
190191 // Provide global definitions of inverse depth first iterators...
191 template class SetTy = std::set::NodeType*>,
192 template
193 class SetTy = llvm::SmallPtrSet::NodeType*, 8>,
192194 bool External = false>
193195 struct idf_iterator : public df_iterator, SetTy, External> {
194196 idf_iterator(const df_iterator, SetTy, External> &V)