File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
lib/SILOptimizer/Transforms Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -327,10 +327,10 @@ class AccessConflictAndMergeAnalysis {
327
327
void AccessConflictAndMergeAnalysis::recordInScopeConflicts (
328
328
RegionState &state, const AccessedStorage &currStorage,
329
329
SILAccessKind currKind) {
330
- // It is tempting to combine loop with the loop in removeConflicts, which also
331
- // checks isDistinctFrom for each element. However, since SetVector does not
332
- // support 'llvm::erase_if', it is actually more efficient to do the removal
333
- // in a separate 'remove_if' loop.
330
+ // It is tempting to combine this loop with the loop in removeConflicts, which
331
+ // also checks isDistinctFrom for each element. However, since SetVector does
332
+ // not support 'llvm::erase_if', it is actually more efficient to do the
333
+ // removal in a separate 'remove_if' loop.
334
334
llvm::for_each (state.inScopeConflictFreeAccesses , [&](BeginAccessInst *bai) {
335
335
auto &accessInfo = result.getAccessInfo (bai);
336
336
if (accessKindMayConflict (currKind, bai->getAccessKind ())
Original file line number Diff line number Diff line change @@ -1681,7 +1681,7 @@ bb0:
1681
1681
1682
1682
// public func testNestedWriteBailout() {
1683
1683
// Same as testNestedReadBailout but with modify
1684
- // We will create two scopes - nested conflict
1684
+ // We will create two scopes - the nested conflict must be preserved.
1685
1685
//
1686
1686
// CHECK-LABEL: sil @testNestedWriteBailout : $@convention(thin) () -> () {
1687
1687
// CHECK: [[GLOBAL:%.*]] = global_addr @globalX : $*X
You can’t perform that action at this time.
0 commit comments