Changes in directory llvm/lib/VMCore:
Verifier.cpp updated: 1.191 -> 1.192 --- Log message: Change an std::set to a SmallPtrSet. This speeds up the verifier on 447.dealII from 1.27s to 0.86s. --- Diffs of the changes: (+2 -1) Verifier.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletion(-) Index: llvm/lib/VMCore/Verifier.cpp diff -u llvm/lib/VMCore/Verifier.cpp:1.191 llvm/lib/VMCore/Verifier.cpp:1.192 --- llvm/lib/VMCore/Verifier.cpp:1.191 Tue Feb 6 12:02:54 2007 +++ llvm/lib/VMCore/Verifier.cpp Sat Feb 10 02:19:44 2007 @@ -56,6 +56,7 @@ #include "llvm/Support/CFG.h" #include "llvm/Support/InstVisitor.h" #include "llvm/Support/Streams.h" +#include "llvm/ADT/SmallPtrSet.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/STLExtras.h" #include "llvm/Support/Compiler.h" @@ -80,7 +81,7 @@ /// instructions we have seen so far. This allows us to do efficient /// dominance checks for the case when an instruction has an operand that is /// an instruction in the same block. - std::set<Instruction*> InstsInThisBlock; + SmallPtrSet<Instruction*, 16> InstsInThisBlock; Verifier() : Broken(false), RealPass(true), action(AbortProcessAction), _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits