Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit fe8da9b

Browse files
author
Sven Verdoolaege
committed
rename fixThreadsBelowFilter to fixThreadsBelow
Now that this function no longer depends on the input node being a filter, the filter can also be removed from the name.
1 parent 0e6c5c5 commit fe8da9b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tc/core/polyhedral/cuda/mapped_scop.cc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,21 +158,21 @@ void MappedScop::mapToBlocksAndScaleBand(
158158
}
159159

160160
/*
161-
* Given a filter node in the schedule tree of a mapped scop,
162-
* insert another filter underneath (if needed) that fixes
161+
* Given a node in the schedule tree of a mapped scop,
162+
* insert a mapping filter underneath (if needed) that fixes
163163
* the remaining thread identifiers starting at "begin" to zero.
164164
*/
165-
void fixThreadsBelowFilter(
165+
void fixThreadsBelow(
166166
MappedScop& mscop,
167-
detail::ScheduleTree* filterTree,
167+
detail::ScheduleTree* tree,
168168
size_t begin) {
169169
size_t end = mscop.numThreads.view.size();
170170
if (begin == end) {
171171
return;
172172
}
173173

174174
auto band = detail::ScheduleTree::makeEmptyBand(mscop.scop().scheduleRoot());
175-
auto bandTree = insertNodeBelow(filterTree, std::move(band));
175+
auto bandTree = insertNodeBelow(tree, std::move(band));
176176
mscop.mapRemaining<mapping::ThreadId>(bandTree, begin);
177177
}
178178

@@ -426,7 +426,7 @@ size_t MappedScop::mapInnermostBandsToThreads(detail::ScheduleTree* st) {
426426
auto needSync = st->elemAs<detail::ScheduleTreeElemSequence>() && n > 0;
427427
if (n > 0) {
428428
for (size_t i = 0; i < nChildren; ++i) {
429-
fixThreadsBelowFilter(*this, children[i], nInner[i]);
429+
fixThreadsBelow(*this, children[i], nInner[i]);
430430
}
431431
}
432432
if (needSync) {

0 commit comments

Comments
 (0)