Skip to content

Commit

Permalink
Use LLVMs ADTs that improve the compile time of this pass.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186732 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
nadavrot committed Jul 19, 2013
1 parent dc4ddd3 commit 4e92ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ struct BlockNumbering {
/// 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
Expand Down Expand Up @@ -391,7 +391,7 @@ class BoUpSLP {
SetVector<Instruction *> GatherSeq;

/// Numbers instructions in different blocks.
std::map<BasicBlock *, BlockNumbering> BlocksNumbers;
DenseMap<BasicBlock *, BlockNumbering> BlocksNumbers;

// Analysis and block reference.
Function *F;
Expand Down

0 comments on commit 4e92ea6

Please sign in to comment.