[Mlir-commits] [mlir] 847d845 - Apply clang-tidy fixes for performance-unnecessary-value-param in VectorToGPU.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Thu Dec 7 21:40:19 PST 2023


Author: Mehdi Amini
Date: 2023-12-07T21:39:25-08:00
New Revision: 847d8457d16a7334ba39bdd35c70faa1b295304d

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

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

Added: 
    

Modified: 
    mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp b/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
index 332672f36743e..56fcf25c9ddcc 100644
--- a/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
+++ b/mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
@@ -303,8 +303,9 @@ static bool supportsMMaMatrixType(Operation *op, bool useNvGpu) {
 /// `getSlice`. In scf.for we only want to include as part of the slice elements
 /// that are part of the use/def chain.
 static SetVector<Operation *>
-getSliceContract(Operation *op, BackwardSliceOptions backwardSliceOptions,
-                 ForwardSliceOptions forwardSliceOptions) {
+getSliceContract(Operation *op,
+                 const BackwardSliceOptions &backwardSliceOptions,
+                 const ForwardSliceOptions &forwardSliceOptions) {
   SetVector<Operation *> slice;
   slice.insert(op);
   unsigned currentIndex = 0;


        


More information about the Mlir-commits mailing list