Skip to content

Commit b9b3cf2

Browse files
committed
[MLIR] Apply clang-tidy fixes for performance-unnecessary-value-param in Matrix.cpp (NFC)
1 parent 551cd1b commit b9b3cf2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mlir/include/mlir/Analysis/Presburger/Matrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ class FracMatrix : public Matrix<Fraction> {
322322
// The parameter is what [the original
323323
// paper](https://www.cs.cmu.edu/~avrim/451f11/lectures/lect1129_LLL.pdf)
324324
// calls `y`, usually 3/4.
325-
void LLL(Fraction delta);
325+
void LLL(const Fraction &delta);
326326

327327
// Multiply each row of the matrix by the LCM of the denominators, thereby
328328
// converting it to an integer matrix.

mlir/lib/Analysis/Presburger/Matrix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ FracMatrix FracMatrix::gramSchmidt() const {
721721
// Otherwise, we swap b_k and b_{k-1} and decrement k.
722722
//
723723
// We repeat this until k = n and return.
724-
void FracMatrix::LLL(Fraction delta) {
724+
void FracMatrix::LLL(const Fraction &delta) {
725725
DynamicAPInt nearest;
726726
Fraction mu;
727727

0 commit comments

Comments
 (0)