From: Nadav Rotem Date: Fri, 19 Jul 2013 23:12:19 +0000 (+0000) Subject: Use LLVMs ADTs that improve the compile time of this pass. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=4e92ea655cc0a9d7491dfb6ee27eab270220ddf1;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Vectorize/SLPVectorizer.cpp b/lib/Transforms/Vectorize/SLPVectorizer.cpp index 42aa8a2b431..077854a80af 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 InstrIdx; /// Maps integers to Instructions. - std::vector InstrVec; + SmallVector InstrVec; }; /// \returns the parent basic block if all of the instructions in \p VL @@ -391,7 +391,7 @@ private: SetVector GatherSeq; /// Numbers instructions in different blocks. - std::map BlocksNumbers; + DenseMap BlocksNumbers; // Analysis and block reference. Function *F;