mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Change an std::set to a SmallPtrSet. This speeds up the verifier on
447.dealII from 1.27s to 0.86s. llvm-svn: 34143
This commit is contained in:
parent
02141c9762
commit
a0792c722e
@ -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 @@ namespace { // Anonymous namespace for class
|
||||
/// 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),
|
||||
|
Loading…
Reference in New Issue
Block a user