Skip to content

Commit f0b25a1

Browse files
committed
remove comments in reordering
1 parent c3caf52 commit f0b25a1

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/index_notation/transformations.cpp

-13
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,8 @@ IndexStmt Reorder::apply(IndexStmt stmt, string* reason) const {
150150
}
151151
}
152152
};
153-
154-
cout << "original statement: " << originalStmt << endl;
155153
ReorderVisitor reorderVisitor(content->path);
156154

157-
auto p = getpath();
158-
cout << "path: " << util::join(p) << endl;
159-
if (p.size() > 0) {
160-
originalStmt.accept(&reorderVisitor);
161-
cout << "reordering statment: " << reorderVisitor.innerStmt << endl;
162-
stmt = reorderVisitor.innerStmt;
163-
}
164-
165155
// collect current ordering of IndexVars
166156
bool startedMatch = false;
167157
std::vector<IndexVar> currentOrdering;
@@ -179,7 +169,6 @@ IndexStmt Reorder::apply(IndexStmt stmt, string* reason) const {
179169
}
180170
})
181171
);
182-
cout << "currentOrdering: " << util::join(currentOrdering) << endl;
183172

184173
if (!content->pattern_ordered && currentOrdering == getreplacepattern()) {
185174
taco_iassert(getreplacepattern().size() == 2);
@@ -191,10 +180,8 @@ IndexStmt Reorder::apply(IndexStmt stmt, string* reason) const {
191180
return IndexStmt();
192181
}
193182

194-
cout << "replacePattern: " << util::join(getreplacepattern()) << endl;
195183
auto reorderedStmt = ForAllReplace(currentOrdering, getreplacepattern()).apply(stmt, reason);
196184

197-
198185
struct ReorderedRewriter : public IndexNotationRewriter {
199186
using IndexNotationRewriter::visit;
200187

0 commit comments

Comments
 (0)