mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Use a SmallPtrSet instead of a DenseSet. More memory efficient
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user