[llvm] r186732 - Use LLVMs ADTs that improve the compile time of this pass.

Nadav Rotem nrotem at apple.com
Fri Jul 19 16:12:19 PDT 2013


Author: nadav
Date: Fri Jul 19 18:12:19 2013
New Revision: 186732

URL: http://llvm.org/viewvc/llvm-project?rev=186732&view=rev
Log:
Use LLVMs ADTs that improve the compile time of this pass.

Modified:
    llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp

Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp?rev=186732&r1=186731&r2=186732&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp (original)
+++ llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp Fri Jul 19 18:12:19 2013
@@ -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;





More information about the llvm-commits mailing list