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

Commit b983325

Browse files
author
Sven Verdoolaege
committed
activeDomainPointsHelper: use templated isl types
1 parent 399939d commit b983325

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

tc/core/polyhedral/schedule_utils.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ isl::UnionSet<Statement> collectDomain(
8484

8585
// Get the set of domain elements that are active below
8686
// the given branch of nodes.
87-
isl::union_set activeDomainPointsHelper(
87+
isl::UnionSet<Statement> activeDomainPointsHelper(
8888
const ScheduleTree* root,
8989
const vector<const ScheduleTree*>& nodes) {
9090
return collectDomain(root, nodes, &applyFilter);
@@ -101,16 +101,15 @@ isl::UnionSet<Statement> prefixMappingFilter(
101101
isl::UnionSet<Statement> activeDomainPoints(
102102
const ScheduleTree* root,
103103
const ScheduleTree* node) {
104-
return isl::UnionSet<Statement>(
105-
activeDomainPointsHelper(root, node->ancestors(root)));
104+
return activeDomainPointsHelper(root, node->ancestors(root));
106105
}
107106

108107
isl::UnionSet<Statement> activeDomainPointsBelow(
109108
const ScheduleTree* root,
110109
const ScheduleTree* node) {
111110
auto ancestors = node->ancestors(root);
112111
ancestors.emplace_back(node);
113-
return isl::UnionSet<Statement>(activeDomainPointsHelper(root, ancestors));
112+
return activeDomainPointsHelper(root, ancestors);
114113
}
115114

116115
vector<ScheduleTree*> collectScheduleTreesPath(

0 commit comments

Comments
 (0)