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 | c069c2551820f2516b20fc3c7163060a58aee479 (patch) | |
tree | 991435655f96500fa9a9f1c5fa61d34cb384bbc7 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | 5c9a193a65730848e48f0d8d0d52acf1a7dfd104 (diff) | |
download | bcm5719-llvm-c069c2551820f2516b20fc3c7163060a58aee479.tar.gz bcm5719-llvm-c069c2551820f2516b20fc3c7163060a58aee479.zip |
Use LLVMs ADTs that improve the compile time of this pass.
llvm-svn: 186732
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 42aa8a2b431..077854a80af 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/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; |