mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix findTransitiveUses to only record leaf uses.
Recording uses is now optional. This utility is also used simply to check for PointerEscape. When uses are recorded, they are used to extend a live range. There could be a large number of transitive uses that we don't want to pass back to the caller.
This commit is contained in:
@@ -100,8 +100,7 @@ static bool canBorrowGuaranteedResult(SILValue guaranteedResult) {
|
||||
// conversion to a non-guaranteed value. Either way, not interesting.
|
||||
return true;
|
||||
}
|
||||
SmallVector<Operand *, 16> usePoints;
|
||||
return findInnerTransitiveGuaranteedUses(guaranteedResult, usePoints);
|
||||
return findInnerTransitiveGuaranteedUses(guaranteedResult);
|
||||
}
|
||||
|
||||
bool swift::canCloneTerminator(TermInst *termInst) {
|
||||
|
||||
Reference in New Issue
Block a user