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

Commit 0169dd7

Browse files
author
Sven Verdoolaege
committed
accessSubscriptsAreUnrolledLoops: use isl::space::add_unnamed_tuple_ui
Using isl::space::add_unnamed_tuple_ui is a more natural way of achieving the effect of the original code (which was written before isl::space::add_unnamed_tuple_ui was made available).
1 parent e1895fc commit 0169dd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tc/core/polyhedral/cuda/memory_promotion_heuristic.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ bool accessSubscriptsAreUnrolledLoops(
329329
}
330330
}
331331

332-
auto space = isl::space(leaf->ctx_, 0, unrolledDims.size())
333-
.align_params(subdomain.get_space());
332+
auto space =
333+
subdomain.get_space().add_unnamed_tuple_ui(unrolledDims.size());
334334
auto unrolledDimsMupa = isl::multi_union_pw_aff(space, unrolledDims);
335335

336336
// It is possible that no loops are unrolled, in which case

0 commit comments

Comments
 (0)