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

Commit 1618c89

Browse files
author
Sven Verdoolaege
committed
schedule_print.cc: drop dead code
Some prehistoric representation of TC schedule trees used to needlessly keep track of an isl::ast_loop_type field. The printing function was left in by mistake when this field was removed.
1 parent 3dfab71 commit 1618c89

File tree

2 files changed

+0
-21
lines changed

2 files changed

+0
-21
lines changed

tc/core/polyhedral/schedule_print.cc

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,6 @@ ostream_joiner make_ostream_joiner(std::ostream& os, const char* delimiter) {
8787

8888
} // namespace
8989

90-
std::ostream& operator<<(std::ostream& os, isl::ast_loop_type lt) {
91-
WS w;
92-
os << "type(";
93-
if (lt == isl::ast_loop_type::error) {
94-
os << "error";
95-
} else if (lt == isl::ast_loop_type::_default) {
96-
os << "default";
97-
} else if (lt == isl::ast_loop_type::atomic) {
98-
os << "atomic";
99-
} else if (lt == isl::ast_loop_type::unroll) {
100-
os << "unroll";
101-
} else if (lt == isl::ast_loop_type::separate) {
102-
os << "separate";
103-
} else {
104-
LOG(FATAL) << "NYI: print type: " << static_cast<int>(lt);
105-
}
106-
os << ")";
107-
return os;
108-
}
109-
11090
std::ostream& operator<<(std::ostream& os, detail::ScheduleTreeType nt) {
11191
WS w;
11292
os << w.tab() << "type(";

tc/core/polyhedral/schedule_tree_elem.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ bool elemEquals(
246246
const ScheduleTree* e2,
247247
detail::ScheduleTreeType type);
248248

249-
std::ostream& operator<<(std::ostream& os, isl::ast_loop_type lt);
250249
std::ostream& operator<<(std::ostream& os, detail::ScheduleTreeType nt);
251250
std::ostream& operator<<(
252251
std::ostream& os,

0 commit comments

Comments
 (0)