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

Commit f9eb39e

Browse files
author
Sven Verdoolaege
committed
ScheduleTreeElemMappingFilter: check that mapping id is actually used in filter
1 parent f600fbb commit f9eb39e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tc/core/polyhedral/schedule_tree_elem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ struct ScheduleTreeElemMappingFilter : public ScheduleTreeElemFilter {
156156
for (auto id : std::vector<mapping::MappingId>{BX, BY, BZ, TX, TY, TZ}) {
157157
if (mappingIds.count(id) > 0) {
158158
CHECK_EQ(1u, ids.count(id)) << "id: " << id << " mapped >1 times";
159-
CHECK_LE(0, s.find_dim_by_id(isl::dim_type::param, id))
159+
CHECK(s.involves_param(id))
160160
<< "unexpected missing id: " << id << " in filter: " << s;
161161
} else {
162162
if (s.involves_param(id)) {

0 commit comments

Comments
 (0)