[Mlir-commits] [mlir] b2f8e31 - [mlir][Linalg] Apply ClangTidy finding (NFC)

Adrian Kuegel llvmlistbot at llvm.org
Mon Jun 12 03:03:52 PDT 2023


Author: Adrian Kuegel
Date: 2023-06-12T12:03:37+02:00
New Revision: b2f8e3121a9bc2dcff6b678e4203cbb6e946f2c2

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

LOG: [mlir][Linalg] Apply ClangTidy finding (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp b/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
index c534e78d3404a..3a97d1623e6e3 100644
--- a/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
+++ b/mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
@@ -391,7 +391,7 @@ static Operation *replaceForAllWithNewSignature(
       dominatedUsers.insert(user);
     }
   }
-  if (dominatedUsers.size() == 0)
+  if (dominatedUsers.empty())
     return nullptr;
 
   // Create new scf.forall op


        


More information about the Mlir-commits mailing list