@@ -430,22 +430,22 @@ std::vector<detail::ScheduleTree*> bandsSplitAfterDepth(
430
430
}
431
431
432
432
/*
433
- * Promote to shared memory in "scop" below the node "bandNode ". Use at most
433
+ * Promote to shared memory in "scop" below "node ". Use at most
434
434
* "remainingMemory" bytes, and update the variable to reflect the amount of
435
435
* available shared memory remaining after promotion.
436
436
*/
437
437
void promoteToSharedBelow (
438
438
Scop& scop,
439
- detail::ScheduleTree* bandNode ,
439
+ detail::ScheduleTree* node ,
440
440
size_t & remainingMemory) {
441
441
auto root = scop.scheduleRoot ();
442
- auto partialSched = partialSchedule (root, bandNode );
442
+ auto partialSched = partialSchedule (root, node );
443
443
auto mapping = collectMappingsTo<mapping::BlockId>(scop);
444
444
445
445
auto groupMap = TensorReferenceGroup::accessedWithin (
446
- partialSched.intersect_domain (mapping), scop.reads , scop. writes );
446
+ partialSched.intersect_domain (mapping), scop.body );
447
447
// Pure affine schedule without (mapping) filters.
448
- auto partialSchedMupa = partialScheduleMupa (root, bandNode );
448
+ auto partialSchedMupa = partialScheduleMupa (root, node );
449
449
450
450
// Prepare groups for sorting, to have specified order necessary for
451
451
// reproducibility and tests.
@@ -504,21 +504,21 @@ void promoteToSharedBelow(
504
504
// Do not promote if the group features no reuse and is accessed in a
505
505
// coalesced way.
506
506
if (!hasReuseWithin (*group, partialSchedMupa) &&
507
- !promotionImprovesCoalescing (root, bandNode , *group)) {
507
+ !promotionImprovesCoalescing (root, node , *group)) {
508
508
continue ;
509
509
}
510
510
511
511
scop.promoteGroup (
512
512
Scop::PromotedDecl::Kind::SharedMem,
513
513
tensorId,
514
514
std::move (group),
515
- bandNode ,
515
+ node ,
516
516
partialSched,
517
517
true );
518
518
remainingMemory -= memoryRequirement;
519
519
}
520
520
}
521
- scop.insertSyncsAroundCopies (bandNode );
521
+ scop.insertSyncsAroundCopies (node );
522
522
}
523
523
524
524
/*
0 commit comments