mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 07:59:57 +00:00
Use DenseSet rather than SmallPtrSet for the alive set. Using SmallPtrSet
with a huge "size" parameter is actually quite inefficient. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53034 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
93ee2fd7da
commit
2c04b0da2b
@ -21,7 +21,7 @@
|
||||
#include "llvm/Support/Compiler.h"
|
||||
#include "llvm/Support/InstIterator.h"
|
||||
#include "llvm/ADT/Statistic.h"
|
||||
#include "llvm/ADT/SmallPtrSet.h"
|
||||
#include "llvm/ADT/DenseSet.h"
|
||||
#include "llvm/ADT/SmallVector.h"
|
||||
|
||||
using namespace llvm;
|
||||
@ -33,7 +33,7 @@ namespace {
|
||||
static char ID; // Pass identification, replacement for typeid
|
||||
ADCE() : FunctionPass((intptr_t)&ID) {}
|
||||
|
||||
SmallPtrSet<Instruction*, 1024> alive;
|
||||
DenseSet<Instruction*> alive;
|
||||
SmallVector<Instruction*, 1024> worklist;
|
||||
|
||||
virtual bool runOnFunction(Function& F);
|
||||
|
Loading…
Reference in New Issue
Block a user