Skip to content

Commit 2ce3cd9

Browse files
committed
512 -> 16 chars smallstring
1 parent f47c22f commit 2ce3cd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Polynomial/IR/Polynomial.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ void Polynomial::print(raw_ostream &os, ::llvm::StringRef separator,
4848
if (term.coefficient == 1 && term.exponent.uge(1)) {
4949
coeffToPrint = "";
5050
} else {
51-
llvm::SmallString<512> coeffString;
51+
llvm::SmallString<16> coeffString;
5252
term.coefficient.toStringSigned(coeffString);
5353
coeffToPrint = coeffString.str();
5454
}
@@ -58,7 +58,7 @@ void Polynomial::print(raw_ostream &os, ::llvm::StringRef separator,
5858
} else if (term.exponent == 1) {
5959
os << coeffToPrint << "x";
6060
} else {
61-
llvm::SmallString<512> expString;
61+
llvm::SmallString<16> expString;
6262
term.exponent.toStringSigned(expString);
6363
os << coeffToPrint << "x" << exponentiation << expString;
6464
}

0 commit comments

Comments
 (0)