switch an std::set over to a SmallPtrSet, speeding up mem2reg 6% on 176.gcc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33929 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-02-05 22:15:21 +00:00
parent c837615cf0
commit c670f3da72

View 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.