@@ -79,7 +79,7 @@ class Partition {
79
79
Partition () {}
80
80
81
81
// / Assign a single alloc_stack instruction to all the alloc_stacks in the
82
- // / partiion .
82
+ // / partition .
83
83
// /
84
84
// / This assumes that the live ranges of the alloc_stack instructions are
85
85
// / non-overlapping.
@@ -111,7 +111,7 @@ insertDeallocStackAtEndOf(SmallVectorImpl<SILInstruction *> &FunctionExits,
111
111
}
112
112
113
113
// / Assign a single alloc_stack instruction to all the alloc_stacks in the
114
- // / partiion .
114
+ // / partition .
115
115
void Partition::assignStackLocation (
116
116
SmallVectorImpl<SILInstruction *> &FunctionExits) {
117
117
assert (!Elts.empty () && " Must have a least one location" );
@@ -262,14 +262,14 @@ void MergeStackSlots::mergeSlots() {
262
262
for (auto &PartitionOfOneType : PartitionByType) {
263
263
Liveness Live (PartitionOfOneType);
264
264
265
- // Paritions that are know to contain non-overlapping alloc_stack
265
+ // Partitions that are know to contain non-overlapping alloc_stack
266
266
// live-ranges.
267
267
SmallVector<Partition, 4 > DisjointPartitions (1 , Partition ());
268
268
269
269
// Look at all the alloc_stacks of one type.
270
270
for (auto *CurAllocStack : PartitionOfOneType.Elts ) {
271
271
bool FoundAPartition = false ;
272
- // Check if we can add it to an existing parition that we have show to be
272
+ // Check if we can add it to an existing partition that we have show to be
273
273
// non-interfering.
274
274
for (auto &CandidateP : DisjointPartitions) {
275
275
// If the candidate partition is empty (the very first time we look at an
@@ -282,8 +282,8 @@ void MergeStackSlots::mergeSlots() {
282
282
// Otherwise, we check interference of the current alloc_stack with the
283
283
// candidate partition.
284
284
bool InterferesWithCandidateP = false ;
285
- for (auto *AllocStackInParition : CandidateP.Elts ) {
286
- if (Live.mayOverlap (AllocStackInParition , CurAllocStack)) {
285
+ for (auto *AllocStackInPartition : CandidateP.Elts ) {
286
+ if (Live.mayOverlap (AllocStackInPartition , CurAllocStack)) {
287
287
InterferesWithCandidateP = true ;
288
288
break ;
289
289
}
0 commit comments