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

Commit 0eac520

Browse files
author
Sven Verdoolaege
committed
use templated isl types hasReuseWithin
1 parent 2caef67 commit 0eac520

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tc/core/polyhedral/cuda/memory_promotion_heuristic.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ std::vector<T> collectBranchMarkers(T root, T node) {
142142
* In other words, check that the mapping from statement instances
143143
* to pairs of outer schedule points and group elements is not injective.
144144
*/
145+
template <typename Outer>
145146
bool hasReuseWithin(
146147
const TensorReferenceGroup& group,
147-
isl::multi_union_pw_aff outer) {
148-
auto map = isl::union_map::from(outer);
149-
map = map.range_product(group.originalAccesses());
148+
isl::MultiUnionPwAff<Statement, Outer> outer) {
149+
auto map = outer.toUnionMap().range_product(group.originalAccesses());
150150
return !map.is_injective();
151151
}
152152

0 commit comments

Comments
 (0)