[Mlir-commits] [mlir] d2c7c72 - Apply clang-tidy fixes for readability-simplify-boolean-expr in NVGPUDialect.cpp (NFC)

Mehdi Amini llvmlistbot at llvm.org
Mon Sep 5 05:35:16 PDT 2022


Author: Mehdi Amini
Date: 2022-09-05T12:34:47Z
New Revision: d2c7c725c1db4a55c311d13a8a19a24b0ff84a95

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

LOG: Apply clang-tidy fixes for readability-simplify-boolean-expr in NVGPUDialect.cpp (NFC)

Added: 
    

Modified: 
    mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp b/mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp
index 8580a84d0aee..3a2999ed5e43 100644
--- a/mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp
+++ b/mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp
@@ -186,17 +186,17 @@ LogicalResult MmaSyncOp::verify() {
   int64_t kTile = k / shapeK;
 
   // verify shape of aVector
-  if (!((aShape[0] == mTile * kTile) && (aShape[1] == numElementA)))
+  if ((aShape[0] != mTile * kTile) || (aShape[1] != numElementA))
     return emitOpError() << "expected matrix A to be shaped (" << mTile * kTile
                          << " x " << numElementA << ")";
 
   // verify shape of bVector
-  if (!((bShape[0] == kTile * nTile) && (bShape[1] == numElementB)))
+  if ((bShape[0] != kTile * nTile) || (bShape[1] != numElementB))
     return emitOpError() << "expected matrix B to be shaped (" << kTile * nTile
                          << " x " << numElementB << ")";
 
   // verify shape of cVector
-  if (!((cShape[0] == mTile * nTile) && (cShape[1] == numElementC)))
+  if ((cShape[0] != mTile * nTile) || (cShape[1] != numElementC))
     return emitOpError() << "expected matrix C to be shaped (" << mTile * nTile
                          << " x " << numElementC << ")";
 


        


More information about the Mlir-commits mailing list