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

Commit 6ff8eed

Browse files
Sven Verdoolaegeftynse
authored andcommitted
clean up ScopedFootprint printing
In particular, the closing brace is printed unconditionally, therefore the opening brace should be printed in the same way.
1 parent e1d5c6e commit 6ff8eed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tc/core/polyhedral/memory_promotion.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,8 @@ class TensorReferenceGroup {
159159
};
160160

161161
inline std::ostream& operator<<(std::ostream& os, const ScopedFootprint& fp) {
162-
int i = 0;
162+
os << "{\n";
163163
for (const auto& f : fp) {
164-
if (i++ == 0) {
165-
os << "{\n";
166-
}
167164
os << f.lowerBound << " of size " << f.size << "\n";
168165
}
169166
os << "}";

0 commit comments

Comments
 (0)