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

Commit f600fbb

Browse files
author
Sven Verdoolaege
committed
ScheduleTreeElemMappingFilter: use isl::set::involves_param
1 parent 30cd79d commit f600fbb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tc/core/polyhedral/schedule_tree_elem.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,7 @@ struct ScheduleTreeElemMappingFilter : public ScheduleTreeElemFilter {
159159
CHECK_LE(0, s.find_dim_by_id(isl::dim_type::param, id))
160160
<< "unexpected missing id: " << id << " in filter: " << s;
161161
} else {
162-
auto pos = s.find_dim_by_id(isl::dim_type::param, id);
163-
bool involved =
164-
pos > 0 && s.involves_dims(isl::dim_type::param, pos, 1);
165-
if (involved) {
162+
if (s.involves_param(id)) {
166163
std::stringstream ss;
167164
for (auto id : ids) {
168165
ss << id.to_str() << " ";

0 commit comments

Comments
 (0)