aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-07-02 17:32:04 +0000
committerOwen Anderson <resistor@mac.com>2008-07-02 17:32:04 +0000
commita87452522c61dda6327dc319106e019cd3ed8b03 (patch)
treef335239b35febc0050006688aa164becade89d71 /lib
parentcbeec510525943245b8e6c3ab4381a282e4e80e2 (diff)
downloadexternal_llvm-a87452522c61dda6327dc319106e019cd3ed8b03.zip
external_llvm-a87452522c61dda6327dc319106e019cd3ed8b03.tar.gz
external_llvm-a87452522c61dda6327dc319106e019cd3ed8b03.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/ADCE.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp
index 960ce8f..b9b828d 100644
--- a/lib/Transforms/Scalar/ADCE.cpp
+++ b/lib/Transforms/Scalar/ADCE.cpp
@@ -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);