Use a SmallPtrSet instead of a DenseSet. More memory efficient

This commit is contained in:
Xin Tong
2016-04-18 08:58:35 -07:00
parent 31b6c65039
commit bfc9683b49
2 changed files with 6 additions and 6 deletions

View File

@@ -79,7 +79,8 @@ bool isIntermediateRelease(SILInstruction *I,
/// \brief Recursively collect all the uses and transistive uses of the
/// instruction.
void collectUsesOfValue(SILValue V, llvm::DenseSet<SILInstruction *> &Insts);
void
collectUsesOfValue(SILValue V, llvm::SmallPtrSetImpl<SILInstruction *> &Insts);
/// \brief Recursively erase all of the uses of the instruction (but not the
/// instruction itself)