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

Commit c0bd4d1

Browse files
author
Sven Verdoolaege
committed
updateTopLevelContext: remove construction of universe set
There is little point in constructed this universe set as it will be intersected with the input set anyway.
1 parent d7442e5 commit c0bd4d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tc/core/polyhedral/schedule_transforms.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,8 @@ ScheduleTree* insertTopLevelEmptyBand(ScheduleTree* root) {
286286

287287
void updateTopLevelContext(detail::ScheduleTree* root, isl::set context) {
288288
if (!matchOne(tc::polyhedral::domain(tc::polyhedral::context(any())), root)) {
289-
root->appendChild(ScheduleTree::makeContext(
290-
isl::set::universe(context.get_space()), root->detachChildren()));
289+
root->appendChild(
290+
ScheduleTree::makeContext(context, root->detachChildren()));
291291
}
292292
auto contextElem = const_cast<detail::ScheduleTreeContext*>(
293293
root->child({0})->as<detail::ScheduleTreeContext>());

tc/core/polyhedral/schedule_transforms.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ detail::ScheduleTree* insertTopLevelEmptyBand(detail::ScheduleTree* root);
109109

110110
// Update the top-level context node by intersecting it with "context". The
111111
// top-level context node must be located directly under the root of the tree.
112-
// If there is no such node, insert one with universe context first.
112+
// If there is no such node, insert one first.
113113
void updateTopLevelContext(detail::ScheduleTree* root, isl::set context);
114114

115115
// In a tree starting at "root", insert a sequence node with

0 commit comments

Comments
 (0)