Skip to content

Commit bac1dc9

Browse files
committed
Cleanup LifetimeDependenceUtils comments.
1 parent fbae21f commit bac1dc9

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

SwiftCompilerSources/Sources/Optimizer/Utilities/LifetimeDependenceUtils.swift

+5-4
Original file line numberDiff line numberDiff line change
@@ -766,11 +766,12 @@ extension LifetimeDependenceUseDefWalker {
766766

767767
/// Walk down dependent values.
768768
///
769-
/// Delegates value def-use walking to the ForwardingUseDefWalker and
770-
/// overrides copy, move, borrow, and mark_dependence.
769+
/// First classifies all values using OwnershipUseVisitor. Delegates forwarding uses to the ForwardingUseDefWalker.
770+
/// Transitively follows OwnershipTransitionInstructions (copy, move, borrow, and mark_dependence). Transitively
771+
/// follows interior pointers using AddressUseVisitor. Handles stores to and loads from local variables using
772+
/// LocalVariableReachabilityCache.
771773
///
772-
/// Ignores trivial values (~Escapable types are never
773-
/// trivial. Escapable types may only be lifetime-depenent values if
774+
/// Ignores trivial values (~Escapable types are never trivial. Escapable types may only be lifetime-depenent values if
774775
/// they are non-trivial).
775776
///
776777
/// Skips uses within nested borrow scopes.

0 commit comments

Comments
 (0)