switch an std::set over to a SmallPtrSet, speeding up mem2reg 6% on 176.gcc.
authorChris Lattner <sabre@nondot.org>
Mon, 5 Feb 2007 22:15:21 +0000 (22:15 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Feb 2007 22:15:21 +0000 (22:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33929 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/PromoteMemoryToRegister.cpp

index a73e4682a58e84b280e1d3584e4b79e97e98b908..39a4c897cfe05b4325b896b3683e0097a0391325 100644 (file)
@@ -84,7 +84,7 @@ namespace {
 
     /// Visited - The set of basic blocks the renamer has already visited.
     ///
-    std::set<BasicBlock*> Visited;
+    SmallPtrSet<BasicBlock*, 16> Visited;
 
     /// BBNumbers - Contains a stable numbering of basic blocks to avoid
     /// non-determinstic behavior.