@@ -113,7 +113,8 @@ bool StackNesting::solve() {
113113 // the backward data flow would be sufficient).
114114 // The special thing about dead-end blocks is that it's okay to have alive
115115 // 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.
117118 do {
118119 changed = false ;
119120
@@ -138,7 +139,7 @@ bool StackNesting::solve() {
138139 } while (changed);
139140
140141 // Second step: do a backward dataflow analysis to extend the lifetimes of
141- // no properly nested allocations.
142+ // not properly nested allocations.
142143 do {
143144 changed = false ;
144145
@@ -173,7 +174,7 @@ bool StackNesting::solve() {
173174 int BitNr = bitNumberForAlloc (StackInst);
174175 if (Bits != StackLocs[BitNr].AliveLocs ) {
175176 // 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
177178 // locations.
178179 assert (Bits.test (BitNr) && " no dealloc found for alloc stack" );
179180 StackLocs[BitNr].AliveLocs = Bits;
@@ -339,7 +340,7 @@ StackNesting::Changes StackNesting::fixNesting(SILFunction *F) {
339340 return Changes::None;
340341
341342 // 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.
343344 changes = SN.insertDeallocsAtBlockBoundaries ();
344345 if (changes == Changes::None) {
345346 // Do the real work: extend lifetimes by moving deallocs.
0 commit comments