Use LLVMs ADTs that improve the compile time of this pass.
authorNadav Rotem <nrotem@apple.com>
Fri, 19 Jul 2013 23:12:19 +0000 (23:12 +0000)
committerNadav Rotem <nrotem@apple.com>
Fri, 19 Jul 2013 23:12:19 +0000 (23:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186732 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/SLPVectorizer.cpp

index 42aa8a2b431cb207b868be355f0984c0d12d8a80..077854a80af3ad45083d28d9ec4e6c7f86ece21c 100644 (file)
@@ -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;