Apply clang-tidy fixes for readability-simplify-boolean-expr in NVGPUDialect.cpp...
authorMehdi Amini <joker.eph@gmail.com>
Mon, 29 Aug 2022 11:01:52 +0000 (11:01 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Mon, 5 Sep 2022 12:34:47 +0000 (12:34 +0000)
mlir/lib/Dialect/NVGPU/IR/NVGPUDialect.cpp

index 8580a84..3a2999e 100644 (file)
@@ -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 << ")";