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

Commit df5444e

Browse files
Merge pull request #445 from facebookresearch/pr/size
use ScheduleTreeElemBand::nMember
2 parents 17a2ea8 + 76fcce3 commit df5444e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

tc/core/polyhedral/schedule_transforms.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ ScheduleTree*
293293
bandSplitOut(ScheduleTree* relativeRoot, ScheduleTree* tree, size_t pos) {
294294
auto band = tree->elemAs<ScheduleTreeElemBand>();
295295
CHECK(band);
296-
auto schedule = band->mupa_;
297-
if (pos != schedule.dim(isl::dim_type::set) - 1) {
296+
auto size = band->nMember();
297+
if (pos != size - 1) {
298298
tree = bandSplit(relativeRoot, tree, pos + 1);
299299
}
300300
if (pos != 0) {

tc/core/polyhedral/schedule_tree.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ size_t ScheduleTree::scheduleDepth(const ScheduleTree* relativeRoot) const {
192192
if (!bandElem) {
193193
continue;
194194
}
195-
depth += bandElem->mupa_.dim(isl::dim_type::set);
195+
depth += bandElem->nMember();
196196
}
197197
return depth;
198198
}

tc/core/polyhedral/schedule_tree_elem.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,8 +193,8 @@ bool ScheduleTreeElemBand::operator==(const ScheduleTreeElemBand& other) const {
193193
// further comparison. Compare its explicit domains instead. Note that
194194
// .domain() returns a zero-dimensional union set (in purely parameter space)
195195
// if there is no explicit domain.
196-
bool mupaIs0D = mupa_.dim(isl::dim_type::set) == 0;
197-
bool otherMupaIs0D = other.mupa_.dim(isl::dim_type::set) == 0;
196+
bool mupaIs0D = nMember() == 0;
197+
bool otherMupaIs0D = other.nMember() == 0;
198198
if (mupaIs0D ^ otherMupaIs0D) {
199199
return false;
200200
}

0 commit comments

Comments
 (0)