From 7c3a5513f74020e596b8168ed0996c35217dabce Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 21 Jun 2007 21:25:36 +0000 Subject: [PATCH] Have internal df_iterator's use SmallPtrSet instead of std::set. This provides compile time speedups to any pass using df_iterator. llvm-svn: 37694 --- llvm/include/llvm/ADT/DepthFirstIterator.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/llvm/include/llvm/ADT/DepthFirstIterator.h b/llvm/include/llvm/ADT/DepthFirstIterator.h index 48ee3b2ba844..0cdd79b3c96d 100644 --- a/llvm/include/llvm/ADT/DepthFirstIterator.h +++ b/llvm/include/llvm/ADT/DepthFirstIterator.h @@ -35,6 +35,7 @@ #include "llvm/ADT/GraphTraits.h" #include "llvm/ADT/iterator" +#include "llvm/ADT/SmallPtrSet.h" #include #include @@ -58,8 +59,8 @@ public: // Generic Depth First Iterator -template::NodeType*>, +template::NodeType*, 8>, bool ExtStorage = false, class GT = GraphTraits > class df_iterator : public forward_iterator, public df_iterator_storage { @@ -189,7 +190,8 @@ df_ext_iterator df_ext_end(T G, SetTy &S) { // Provide global definitions of inverse depth first iterators... -template ::NodeType*>, +template ::NodeType*, 8>, bool External = false> struct idf_iterator : public df_iterator, SetTy, External> { idf_iterator(const df_iterator, SetTy, External> &V)