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

Commit 29f10ec

Browse files
committed
ScheduleTree::flattenSequenceOrSet: use public interface
This function can be implemented using only the public interface. It will be removed from the class in the next commit.
1 parent d3e3ed0 commit 29f10ec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tc/core/polyhedral/schedule_tree.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,11 @@ struct ScheduleTree {
394394

395395
// Iterate over the changing list of children. If a child has the same list
396396
// type as a parent, replace it with grandchildren and traverse them too.
397-
for (size_t i = 0; i < children_.size(); ++i) {
398-
if (children_[i]->type_ != type_) {
397+
for (size_t i = 0; i < numChildren(); ++i) {
398+
if (child({i})->type_ != type_) {
399399
continue;
400400
}
401-
auto grandChildren = children_[i]->detachChildren();
401+
auto grandChildren = child({i})->detachChildren();
402402
detachChild(i);
403403
insertChildren(i, std::move(grandChildren));
404404
--i;

0 commit comments

Comments
 (0)