@@ -113,7 +113,8 @@ bool StackNesting::solve() {
113
113
// the backward data flow would be sufficient).
114
114
// The special thing about dead-end blocks is that it's okay to have alive
115
115
// locations at that point (e.g. at an `unreachable`) i.e. locations which are
116
- // never dealloced. We cannot get such locations with a purly backward dataflow.
116
+ // never dealloced. We cannot get such locations with a purely backward
117
+ // dataflow.
117
118
do {
118
119
changed = false ;
119
120
@@ -138,7 +139,7 @@ bool StackNesting::solve() {
138
139
} while (changed);
139
140
140
141
// Second step: do a backward dataflow analysis to extend the lifetimes of
141
- // no properly nested allocations.
142
+ // not properly nested allocations.
142
143
do {
143
144
changed = false ;
144
145
@@ -173,7 +174,7 @@ bool StackNesting::solve() {
173
174
int BitNr = bitNumberForAlloc (StackInst);
174
175
if (Bits != StackLocs[BitNr].AliveLocs ) {
175
176
// More locations are alive around the StackInst's location.
176
- // Update the AlivaLocs bitset, which contains all those alive
177
+ // Update the AliveLocs bitset, which contains all those alive
177
178
// locations.
178
179
assert (Bits.test (BitNr) && " no dealloc found for alloc stack" );
179
180
StackLocs[BitNr].AliveLocs = Bits;
@@ -339,7 +340,7 @@ StackNesting::Changes StackNesting::fixNesting(SILFunction *F) {
339
340
return Changes::None;
340
341
341
342
// Insert deallocs at block boundaries. This might be necessary in CFG sub
342
- // graphs which don't reach a function exit, but only an unreachable.
343
+ // graphs which don't reach a function exit, but only an unreachable.
343
344
changes = SN.insertDeallocsAtBlockBoundaries ();
344
345
if (changes == Changes::None) {
345
346
// Do the real work: extend lifetimes by moving deallocs.
0 commit comments