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

Commit 03d1786

Browse files
author
Sven Verdoolaege
committed
markUnroll: explicitly take into account mapping
prefixSchedule currently includes the effects any outer mapping, but this will be changed in the next commit. markUnroll needs this mapping in order to be able to determine whether the schedule dimension from which a block mapping is derived can be unrolled. Introduce the outer mapping explicitly.
1 parent 2a3e7ac commit 03d1786

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tc/core/polyhedral/unroll.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ void markUnroll(
181181

182182
auto unrollVal = isl::val(st->ctx_, unroll);
183183
auto prefix = prefixSchedule(root, st);
184+
prefix = prefix.intersect_domain(prefixMappingFilter(root, st));
184185
boundInstancesAndMarkUnroll(st, prefix, unrollVal);
185186
}
186187
} // namespace polyhedral

0 commit comments

Comments
 (0)