[Mlir-commits] [mlir] 1c65897 - Apply clang-tidy fixes for readability-simplify-boolean-expr in Vectorization.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Sun Jan 8 04:05:27 PST 2023
Author: Mehdi Amini
Date: 2023-01-08T12:04:52Z
New Revision: 1c65897978654631fa248553cb957ff2333a47fe
URL: https://github.com/llvm/llvm-project/commit/1c65897978654631fa248553cb957ff2333a47fe
DIFF: https://github.com/llvm/llvm-project/commit/1c65897978654631fa248553cb957ff2333a47fe.diff
LOG: Apply clang-tidy fixes for readability-simplify-boolean-expr in Vectorization.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
index c0cede453470d..a17663b101912 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -1872,8 +1872,8 @@ struct Conv1DGenerator
if (!setOperKind(reduceOp))
return;
auto maybeKind = getCombinerOpKind(reduceOp);
- if (!(maybeKind && (*maybeKind == vector::CombiningKind::ADD ||
- (oper == Pool && isSupportedPoolKind(*maybeKind))))) {
+ if (!maybeKind || (*maybeKind != vector::CombiningKind::ADD &&
+ (oper != Pool || !isSupportedPoolKind(*maybeKind)))) {
return;
}
More information about the Mlir-commits
mailing list