[Mlir-commits] [mlir] d5f98f3 - [MLIR] Apply clang-tidy fixes for performance-unnecessary-copy-initialization in InferIntRangeCommon.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Oct 1 04:56:30 PDT 2025
Author: Mehdi Amini
Date: 2025-10-01T04:50:15-07:00
New Revision: d5f98f3b01d8cece369d62366c180a5deb89e42f
URL: https://github.com/llvm/llvm-project/commit/d5f98f3b01d8cece369d62366c180a5deb89e42f
DIFF: https://github.com/llvm/llvm-project/commit/d5f98f3b01d8cece369d62366c180a5deb89e42f.diff
LOG: [MLIR] Apply clang-tidy fixes for performance-unnecessary-copy-initialization in InferIntRangeCommon.cpp (NFC)
Added:
Modified:
mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp b/mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp
index af4ea5ac1cec8..0f28cbc751c1c 100644
--- a/mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp
+++ b/mlir/lib/Interfaces/Utils/InferIntRangeCommon.cpp
@@ -304,7 +304,7 @@ static ConstantIntRanges inferDivURange(const ConstantIntRanges &lhs,
umin = lhsMin.udiv(rhsMax);
// X u/ Y u<= X.
- APInt umax = lhsMax;
+ const APInt &umax = lhsMax;
return ConstantIntRanges::fromUnsigned(umin, umax);
}
More information about the Mlir-commits
mailing list