@@ -318,7 +318,7 @@ bool isCoalesced(
318
318
* are mapped to threads (the innermost of them being mapped to thread x) and
319
319
* the depth of this mapping can be obtained from threadIdxXScheduleDepthState.
320
320
*
321
- * In parciular , the group's footprint must contain only one element and the
321
+ * In particular , the group's footprint must contain only one element and the
322
322
* same tensor element should never be accessed by two different threads.
323
323
*/
324
324
bool isPromotableToRegisterBelowThreads (
@@ -350,15 +350,15 @@ bool isPromotableToRegisterBelowThreads(
350
350
auto scheduledAccesses = originalAccesses.apply_domain (schedule);
351
351
352
352
// Scheduled accesses contain maps from schedule dimensions to tensor
353
- // subscripts. Compute the relation that between the schedule dimensions
353
+ // subscripts. Compute the relation between the schedule dimensions
354
354
// mapped to threads and tensor subscripts by first removing dimensions
355
355
// following the one mapped to thread x (last one assuming inverse mapping
356
356
// order), then by equating all dimensions not mapped to threads to
357
357
// parameters. Promotion to registers is only allowed if the resulting
358
358
// relation is injective, i.e. the same tensor element is never accessed by
359
359
// more than one thread. Note that our current check is overly conservative
360
360
// because different values of schedule dimension may get mapped to the same
361
- // thread, in which case the could access the same tensor element.
361
+ // thread, in which case they could access the same tensor element.
362
362
for (auto sa : isl::UnionAsVector<isl::union_map>(scheduledAccesses)) {
363
363
sa = sa.project_out (
364
364
isl::dim_type::in, depth, sa.dim (isl::dim_type::in) - depth);
0 commit comments