From: Mehdi Amini Date: Thu, 3 Nov 2022 20:07:33 +0000 (+0000) Subject: Apply clang-tidy fixes for readability-simplify-boolean-expr in GPUDialect.cpp (NFC) X-Git-Tag: upstream/17.0.6~28397 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c310a6dda2f2f2a7011eb817431a0bb6774717c9;p=platform%2Fupstream%2Fllvm.git Apply clang-tidy fixes for readability-simplify-boolean-expr in GPUDialect.cpp (NFC) --- diff --git a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp index 3eee608..2c30425 100644 --- a/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp +++ b/mlir/lib/Dialect/GPU/IR/GPUDialect.cpp @@ -311,13 +311,10 @@ static void printAsyncDependencies(OpAsmPrinter &printer, Operation *op, static bool verifyReduceOpAndType(gpu::AllReduceOperation opName, Type resType) { - if ((opName == gpu::AllReduceOperation::AND || - opName == gpu::AllReduceOperation::OR || - opName == gpu::AllReduceOperation::XOR) && - !resType.isa()) - return false; - - return true; + return !((opName == gpu::AllReduceOperation::AND || + opName == gpu::AllReduceOperation::OR || + opName == gpu::AllReduceOperation::XOR) && + !resType.isa()); } LogicalResult gpu::AllReduceOp::verifyRegions() {