Skip to content

Commit 3c8d99d

Browse files
committed
[Gardening] BarrierAccessScopes: Corrected comment.
1 parent cb91443 commit 3c8d99d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

include/swift/SILOptimizer/Analysis/VisitBarrierAccessScopes.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,9 @@ class VisitBarrierAccessScopes {
259259
}
260260
}
261261
// If any of this block's predecessors haven't already been visited, it
262-
// means that they aren't in the region and consequently this block is a
263-
// barrier block.
262+
// means EITHER that those predecessors aren't in the region OR that a
263+
// barrier was encountered when visiting some (iterative) successor of that
264+
// predecessor. Either way, this block is a barrier block as a result.
264265
if (llvm::any_of(block->getSuccessorBlocks(), [&](SILBasicBlock *block) {
265266
return !visited.contains(block);
266267
})) {

0 commit comments

Comments
 (0)