[Mlir-commits] [mlir] 1ddc541 - Apply clang-tidy fixes for readability-simplify-boolean-expr in TransformOps.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Feb 14 10:12:36 PST 2024
Author: Mehdi Amini
Date: 2024-02-14T10:11:37-08:00
New Revision: 1ddc5413b12c80170477240cd54513358e6f8fe4
URL: https://github.com/llvm/llvm-project/commit/1ddc5413b12c80170477240cd54513358e6f8fe4
DIFF: https://github.com/llvm/llvm-project/commit/1ddc5413b12c80170477240cd54513358e6f8fe4.diff
LOG: Apply clang-tidy fixes for readability-simplify-boolean-expr in TransformOps.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Transform/IR/TransformOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
index efb724006674f4..180d11c30e65de 100644
--- a/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
+++ b/mlir/lib/Dialect/Transform/IR/TransformOps.cpp
@@ -2223,7 +2223,7 @@ transform::SplitHandleOp::apply(transform::TransformRewriter &rewriter,
// - "fail_on_payload_too_small" is set to "false", or
// - "pass_through_empty_handle" is set to "true" and there are 0 payload ops.
if (numPayloadOps < getNumResults() && getFailOnPayloadTooSmall() &&
- !(numPayloadOps == 0 && getPassThroughEmptyHandle()))
+ (numPayloadOps != 0 || !getPassThroughEmptyHandle()))
return produceNumOpsError();
// Distribute payload ops.
More information about the Mlir-commits
mailing list