Skip to content

Commit 732393b

Browse files
committed
Apply clang-tidy fixes for performance-unnecessary-value-param in Matrix.cpp (NFC)
1 parent 6bbb73b commit 732393b

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
@@ -318,7 +318,7 @@ class FracMatrix : public Matrix<Fraction> {
318318
// The parameter is what [the original
319319
// paper](https://www.cs.cmu.edu/~avrim/451f11/lectures/lect1129_LLL.pdf)
320320
// calls `y`, usually 3/4.
321-
void LLL(Fraction delta);
321+
void LLL(const Fraction &delta);
322322

323323
// Multiply each row of the matrix by the LCM of the denominators, thereby
324324
// 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
@@ -717,7 +717,7 @@ FracMatrix FracMatrix::gramSchmidt() const {
717717
// Otherwise, we swap b_k and b_{k-1} and decrement k.
718718
//
719719
// We repeat this until k = n and return.
720-
void FracMatrix::LLL(Fraction delta) {
720+
void FracMatrix::LLL(const Fraction &delta) {
721721
MPInt nearest;
722722
Fraction mu;
723723

0 commit comments

Comments
 (0)