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

Commit 967eb20

Browse files
Sven Verdoolaegeftynse
authored andcommitted
TensorReferenceGroup::makeSingleton: explicitly drop reference tag
The group approximation should not have a reference tag since it may cover multiple references. The tag currently gets removed implicitly because outputRanges flattens the domain space. Explicitly drop the tags before calling outputRanges. Note that the call to outputRanges occurs a couple of lines down from the changes.
1 parent e7a751c commit 967eb20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tc/core/polyhedral/memory_promotion.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,9 @@ std::unique_ptr<TensorReferenceGroup> TensorReferenceGroup::makeSingleton(
117117
auto ref = std::unique_ptr<TensorReference>(new TensorReference);
118118
auto refId = scopedAccess.get_space().domain().unwrap().get_tuple_id(
119119
isl::dim_type::out);
120+
scopedAccess = scopedAccess.domain_factor_domain();
120121
ref->originalAccess = originalAccess.domain_factor_domain();
121-
ref->scopedAccess = scopedAccess.domain_factor_domain();
122+
ref->scopedAccess = scopedAccess;
122123
ref->type = type;
123124
ref->refId = refId;
124125
auto group = std::unique_ptr<TensorReferenceGroup>(new TensorReferenceGroup);

0 commit comments

Comments
 (0)