[Mlir-commits] [mlir] e5e0895 - Apply clang-tidy fixes for performance-move-const-arg in IntRangeOptimizations.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon Jan 15 20:59:28 PST 2024


Author: Mehdi Amini
Date: 2024-01-15T20:59:12-08:00
New Revision: e5e08955af215ac9c918212de2b24036b4d7208c

URL: https://github.com/llvm/llvm-project/commit/e5e08955af215ac9c918212de2b24036b4d7208c
DIFF: https://github.com/llvm/llvm-project/commit/e5e08955af215ac9c918212de2b24036b4d7208c.diff

LOG: Apply clang-tidy fixes for performance-move-const-arg in IntRangeOptimizations.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp b/mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp
index 04a560ce474f1c..92cad7cd1ef26c 100644
--- a/mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp
+++ b/mlir/lib/Dialect/Arith/Transforms/IntRangeOptimizations.cpp
@@ -32,14 +32,14 @@ static bool intersects(const ConstantIntRanges &lhs,
 }
 
 static FailureOr<bool> handleEq(ConstantIntRanges lhs, ConstantIntRanges rhs) {
-  if (!intersects(std::move(lhs), std::move(rhs)))
+  if (!intersects(lhs, rhs))
     return false;
 
   return failure();
 }
 
 static FailureOr<bool> handleNe(ConstantIntRanges lhs, ConstantIntRanges rhs) {
-  if (!intersects(std::move(lhs), std::move(rhs)))
+  if (!intersects(lhs, rhs))
     return true;
 
   return failure();


        


More information about the Mlir-commits mailing list