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

Commit 22037c5

Browse files
author
Sven Verdoolaege
committed
ScopedFootprint::footprint: extract iterator expressions from identity function
This avoids the use of functions in the C++ interface that will not be exported in mainline isl.
1 parent 036ecde commit 22037c5

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
@@ -111,14 +111,14 @@ isl::map TensorReferenceGroup::approximateScopedAccesses() const {
111111
auto scopedDomain = scopedAccesses().domain();
112112
auto space = approximation.box.get_space();
113113
auto accessed = isl::map::universe(space).intersect_domain(scopedDomain);
114-
auto lspace = isl::local_space(accessed.get_space().range());
115114

115+
auto identity = isl::multi_aff::identity(space.range().map_from_set());
116116
for (size_t i = 0; i < approximation.dim(); ++i) {
117117
auto offset = approximation.lowerBound(i);
118118
auto stride = approximation.stride(i);
119119
auto strideOffset = approximation.strideOffset(i);
120120
auto size = approximation.size(i);
121-
auto rhs = isl::aff(lspace, isl::dim_type::set, i);
121+
auto rhs = identity.get_aff(i);
122122
auto lowerBound = offset * stride + strideOffset;
123123
auto upperBound = (offset + size) * stride + strideOffset;
124124
auto partial =

0 commit comments

Comments
 (0)