aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Vectorize/SLPVectorizer.cpp
diff options
context:
space:
mode:
authorNadav Rotem <nrotem@apple.com>2013-07-19 23:12:19 +0000
committerNadav Rotem <nrotem@apple.com>2013-07-19 23:12:19 +0000
commit4e92ea655cc0a9d7491dfb6ee27eab270220ddf1 (patch)
treef6bf99aabef432d9a79326e04da1f5b0eaa9a077 /lib/Transforms/Vectorize/SLPVectorizer.cpp
parentdc4ddd32012e93ac13f36e2d2a8c3ee760f44eb4 (diff)
downloadexternal_llvm-4e92ea655cc0a9d7491dfb6ee27eab270220ddf1.zip
external_llvm-4e92ea655cc0a9d7491dfb6ee27eab270220ddf1.tar.gz
external_llvm-4e92ea655cc0a9d7491dfb6ee27eab270220ddf1.tar.bz2
Use LLVMs ADTs that improve the compile time of this pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186732 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r--lib/Transforms/Vectorize/SLPVectorizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 42aa8a2..077854a 100644
--- a/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -115,7 +115,7 @@ private:
/// Maps instructions to numbers and back.
SmallDenseMap<Instruction *, int> InstrIdx;
/// Maps integers to Instructions.
- std::vector<Instruction *> InstrVec;
+ SmallVector<Instruction *, 32> InstrVec;
};
/// \returns the parent basic block if all of the instructions in \p VL
@@ -391,7 +391,7 @@ private:
SetVector<Instruction *> GatherSeq;
/// Numbers instructions in different blocks.
- std::map<BasicBlock *, BlockNumbering> BlocksNumbers;
+ DenseMap<BasicBlock *, BlockNumbering> BlocksNumbers;
// Analysis and block reference.
Function *F;