Skip to content

Commit db41d89

Browse files
committed
[StackNesting] Gardening: Fixed typos.
1 parent f3a9339 commit db41d89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/SILOptimizer/Utils/StackNesting.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ bool StackNesting::solve() {
9595
// unreachable instructions (otherwise the backward data flow would be
9696
// sufficient). The special thing about unreachable-blocks is that it's
9797
// okay to have alive locations at that point, i.e. locations which are never
98-
// dealloced. We cannot get such locations with a purly backward dataflow.
98+
// dealloced. We cannot get such locations with a purely backward dataflow.
9999
do {
100100
changed = false;
101101

@@ -120,7 +120,7 @@ bool StackNesting::solve() {
120120
} while (changed);
121121

122122
// Second step: do a backward dataflow analysis to extend the lifetimes of
123-
// no properly nested allocations.
123+
// not properly nested allocations.
124124
do {
125125
changed = false;
126126

@@ -151,7 +151,7 @@ bool StackNesting::solve() {
151151
int BitNr = bitNumberForAlloc(StackInst);
152152
if (Bits != StackLocs[BitNr].AliveLocs) {
153153
// More locations are alive around the StackInst's location.
154-
// Update the AlivaLocs bitset, which contains all those alive
154+
// Update the AliveLocs bitset, which contains all those alive
155155
// locations.
156156
assert(Bits.test(BitNr) && "no dealloc found for alloc stack");
157157
StackLocs[BitNr].AliveLocs = Bits;
@@ -317,7 +317,7 @@ StackNesting::Changes StackNesting::fixNesting(SILFunction *F) {
317317
return Changes::None;
318318

319319
// Insert deallocs at block boundaries. This might be necessary in CFG sub
320-
// graphs which don't reach a function exit, but only an unreachable.
320+
// graphs which don't reach a function exit, but only an unreachable.
321321
changes = SN.insertDeallocsAtBlockBoundaries();
322322
if (changes == Changes::None) {
323323
// Do the real work: extend lifetimes by moving deallocs.

0 commit comments

Comments
 (0)