Skip to content

Commit b0256b9

Browse files
authored
Merge pull request #60606 from gottesmm/pr-3bc4d4982b504c8abe0d3302742e66d07e8f9c22
[pruned-liveness] Fix incorrect header comment that didn't describe the algorithm correctly.
2 parents 2c295ab + 65b7777 commit b0256b9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

include/swift/SIL/PrunedLiveness.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,21 +57,21 @@
5757
///
5858
/// Example 2. Cross-block liveness.
5959
///
60-
/// Initial State:
60+
/// Initial State after initializing a def block:
6161
///
6262
/// -----
63-
/// | Def | [LiveOut]
63+
/// | Def | [LiveWithin]
6464
/// -----
6565
/// |
6666
/// -----
6767
/// | | [Dead]
6868
/// -----
6969
/// |
7070
/// -----
71-
/// | | [Dead]
71+
/// | Use | [Dead]
7272
/// -----
7373
///
74-
/// State after updateForUse:
74+
/// Later state after updateForUse is applied to the use:
7575
///
7676
/// -----
7777
/// | Def | [LiveOut]
@@ -85,6 +85,10 @@
8585
/// | Use | [LiveWithin]
8686
/// -----
8787
///
88+
///
89+
/// An invariant is that for any liveness region, the post-dominating blocks of
90+
/// the region are the LiveWithin regions.
91+
///
8892
//===----------------------------------------------------------------------===//
8993

9094
#ifndef SWIFT_SILOPTIMIZER_UTILS_PRUNEDLIVENESS_H

0 commit comments

Comments
 (0)