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

Commit 221fa20

Browse files
author
Sven Verdoolaege
committed
isPromotableToRegistersBelow: use previously unused variable
1 parent e7b33f3 commit 221fa20

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tc/core/polyhedral/cuda/memory_promotion_heuristic.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,15 +421,14 @@ bool isPromotableToRegistersBelow(
421421
const detail::ScheduleTree* scope,
422422
isl::multi_union_pw_aff outer,
423423
isl::multi_union_pw_aff thread) {
424-
auto originalAccesses = group.originalAccesses();
425-
426424
if (!accessSubscriptsAreUnrolledLoops(
427425
group, root, scope, outer.flat_range_product(thread))) {
428426
return false;
429427
}
430428

429+
auto originalAccesses = group.originalAccesses();
431430
auto map = isl::union_map::from(outer);
432-
map = map.range_product(group.originalAccesses());
431+
map = map.range_product(originalAccesses);
433432
map = map.apply_domain(isl::union_map::from(thread));
434433

435434
return map.is_injective();

0 commit comments

Comments
 (0)