[Mlir-commits] [mlir] 495ddf1 - Apply clang-tidy fixes for performance-unnecessary-value-param in AffineCanonicalizationUtils.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Thu Jan 5 01:59:43 PST 2023


Author: Mehdi Amini
Date: 2023-01-05T09:59:35Z
New Revision: 495ddf1e4fd56119e57e65e5d812c4ace5446212

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

LOG: Apply clang-tidy fixes for performance-unnecessary-value-param in AffineCanonicalizationUtils.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/SCF/Utils/AffineCanonicalizationUtils.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/SCF/Utils/AffineCanonicalizationUtils.cpp b/mlir/lib/Dialect/SCF/Utils/AffineCanonicalizationUtils.cpp
index 0acb511c6d786..0b09dc5374d1b 100644
--- a/mlir/lib/Dialect/SCF/Utils/AffineCanonicalizationUtils.cpp
+++ b/mlir/lib/Dialect/SCF/Utils/AffineCanonicalizationUtils.cpp
@@ -10,6 +10,8 @@
 //
 //===----------------------------------------------------------------------===//
 
+#include <utility>
+
 #include "mlir/Dialect/SCF/Utils/AffineCanonicalizationUtils.h"
 #include "mlir/Dialect/Affine/Analysis/AffineStructures.h"
 #include "mlir/Dialect/Affine/Analysis/Utils.h"
@@ -33,7 +35,7 @@ canonicalizeMinMaxOp(RewriterBase &rewriter, Operation *op,
   RewriterBase::InsertionGuard guard(rewriter);
   rewriter.setInsertionPoint(op);
   FailureOr<AffineValueMap> simplified =
-      mlir::simplifyConstrainedMinMaxOp(op, constraints);
+      mlir::simplifyConstrainedMinMaxOp(op, std::move(constraints));
   if (failed(simplified))
     return failure();
   return rewriter.replaceOpWithNewOp<AffineApplyOp>(


        


More information about the Mlir-commits mailing list