Skip to content

Commit 1bb27f6

Browse files
committed
ValueLifetime: add a TODO cross-referencing a new utility
1 parent 0bc30e6 commit 1bb27f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/swift/SILOptimizer/Utils/ValueLifetime.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,14 @@ namespace swift {
4545
/// lastUser or boundaryEdge. But with infinite loops, it is possible for both
4646
/// lastUsers and boundaryEdges to be empty even if there are uses within the
4747
/// loop.
48+
///
49+
/// TODO: combine this with PrunedLivenessBoundary.
4850
struct ValueLifetimeBoundary {
4951
SmallVector<SILInstruction *, 8> lastUsers;
5052
SmallVector<SILBasicBlock *, 8> boundaryEdges;
5153

5254
/// Visit the point at which a lifetime-ending instruction must be inserted,
53-
/// exclusing dead-end blocks. This is only useful when it is known that none
55+
/// excluding dead-end blocks. This is only useful when it is known that none
5456
/// of the lastUsers ends the lifetime, for example when creating a new borrow
5557
/// scope to enclose all uses.
5658
void visitInsertionPoints(

0 commit comments

Comments
 (0)