Skip to content

Commit 95a100a

Browse files
committed
Add a comment in LifetimeDependenceUseDefWalker.
1 parent bdabc21 commit 95a100a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SwiftCompilerSources/Sources/Optimizer/Utilities/LifetimeDependenceUtils.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -792,6 +792,8 @@ extension LifetimeDependenceUseDefWalker {
792792
/// yieldedDependence(result: Operand) -> WalkResult
793793
/// Start walking:
794794
/// walkDown(root: Value)
795+
///
796+
/// Note: this may visit values that are not dominated by `root` because of dependent phi operands.
795797
protocol LifetimeDependenceDefUseWalker : ForwardingDefUseWalker,
796798
OwnershipUseVisitor,
797799
AddressUseVisitor {

0 commit comments

Comments
 (0)