File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -189,6 +189,14 @@ module Make<LocationSig Location, InputSig<Location> Input> {
189
189
/**
190
190
* Gets the (1-based) rank of the first reference to `v` inside basic block `bb`
191
191
* that is either a read or a certain write.
192
+ *
193
+ * Note that uncertain writes have no impact on liveness: a variable is
194
+ * live before an uncertain write if and only if it is live after.
195
+ * The reference identified here therefore determines liveness at the
196
+ * beginning of `bb`: if it is a read then the variable is live and if it
197
+ * is a write then it is not. For basic blocks without reads or certain
198
+ * writes, liveness at the beginning of the block is equivalent to liveness
199
+ * at the end of the block.
192
200
*/
193
201
private int firstReadOrCertainWrite ( BasicBlock bb , SourceVariable v ) {
194
202
result =
You can’t perform that action at this time.
0 commit comments