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

Commit 76fcce3

Browse files
author
Sven Verdoolaege
committed
ScheduleTreeElemBand::operator==: use ScheduleTreeElemBand::nMember
This is the canonical way of determining the number of scheduling dimensions in a band.
1 parent 46b2419 commit 76fcce3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)