diff options
| author | Nadav Rotem <nrotem@apple.com> | 2013-07-19 23:12:19 +0000 |
|---|---|---|
| committer | Nadav Rotem <nrotem@apple.com> | 2013-07-19 23:12:19 +0000 |
| commit | 4e92ea655cc0a9d7491dfb6ee27eab270220ddf1 (patch) | |
| tree | f6bf99aabef432d9a79326e04da1f5b0eaa9a077 /lib/Transforms/Vectorize/SLPVectorizer.cpp | |
| parent | dc4ddd32012e93ac13f36e2d2a8c3ee760f44eb4 (diff) | |
| download | external_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.cpp | 4 |
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; |
