mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-02 00:51:56 +00:00
Use LLVMs ADTs that improve the compile time of this pass.
llvm-svn: 186732
This commit is contained in:
parent
aead8bb4d6
commit
43e3cf61bf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user