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

Commit cac18f0

Browse files
author
Sven Verdoolaege
committed
rangeOfMappingParameter: use isl::union_set::involves_param
1 parent 37f1c75 commit cac18f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tc/core/polyhedral/cuda/tighten_launch_bounds.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ std::pair<size_t, size_t> rangeOfMappingParameter(
4848
mapping::MappingId mappingId) {
4949
auto active =
5050
activeDomainPoints(root, node).intersect_params(context).params();
51-
int pos = active.find_dim_by_id(isl::dim_type::param, mappingId);
52-
if (pos < 0) {
51+
if (!active.involves_param(mappingId)) {
5352
return std::make_pair(0, std::numeric_limits<size_t>::max());
5453
}
5554
isl::aff a(isl::aff::param_on_domain_space(active.get_space(), mappingId));

0 commit comments

Comments
 (0)