We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb91443 commit 3c8d99dCopy full SHA for 3c8d99d
include/swift/SILOptimizer/Analysis/VisitBarrierAccessScopes.h
@@ -259,8 +259,9 @@ class VisitBarrierAccessScopes {
259
}
260
261
// 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.
+ // means EITHER that those predecessors aren't in the region OR that a
+ // barrier was encountered when visiting some (iterative) successor of that
264
+ // predecessor. Either way, this block is a barrier block as a result.
265
if (llvm::any_of(block->getSuccessorBlocks(), [&](SILBasicBlock *block) {
266
return !visited.contains(block);
267
})) {
0 commit comments