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

Commit c9a380b

Browse files
Sven Verdoolaegeftynse
authored andcommitted
TensorReferenceGroup::promotedFootprint: preserve tensor id
It is not clear why the tensor id got removed before, but it needs to be preserved to be able to check compatibility with the sizes in the next commit.
1 parent b477bcb commit c9a380b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tc/core/polyhedral/memory_promotion.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,7 @@ bool TensorReferenceGroup::isReadOnly() const {
108108
}
109109

110110
isl::set TensorReferenceGroup::promotedFootprint() const {
111-
auto space =
112-
scopedAccesses().get_space().range().reset_tuple_id(isl::dim_type::set);
111+
auto space = scopedAccesses().get_space().range();
113112
auto sizes = approximationSizes();
114113
if (sizes.size() != space.dim(isl::dim_type::set)) {
115114
throw promotion::GroupingError("unexpected dimensionality mismatch");

0 commit comments

Comments
 (0)