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

Commit d7c04ae

Browse files
author
Sven Verdoolaege
committed
TensorReferenceGroup::promotedFootprint: extract iterators from identity
This avoids the use of functions in the C++ interface that will not be exported in mainline isl. Note that the original code was technically incorrect, since it used isl::dim_type::out instead of isl::dim_type::set (which happen to have the same value internally in isl).
1 parent 22037c5 commit d7c04ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tc/core/polyhedral/memory_promotion.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@ isl::set TensorReferenceGroup::promotedFootprint() const {
152152
}
153153

154154
isl::set footprint = isl::set::universe(space);
155-
auto lspace = isl::local_space(space);
155+
auto identity = isl::multi_aff::identity(space.map_from_set());
156156
for (size_t i = 0, e = sizes.size(); i < e; ++i) {
157-
auto aff = isl::aff(lspace, isl::dim_type::out, i);
157+
auto aff = identity.get_aff(i);
158158
auto size = sizes.get_val(i);
159159
footprint =
160160
footprint & (isl::aff_set(aff) >= 0) & (isl::aff_set(aff) < size);

0 commit comments

Comments
 (0)