Skip to content

Commit 1c65897

Browse files
committed
Apply clang-tidy fixes for readability-simplify-boolean-expr in Vectorization.cpp (NFC)
1 parent fc87452 commit 1c65897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1872,8 +1872,8 @@ struct Conv1DGenerator
18721872
if (!setOperKind(reduceOp))
18731873
return;
18741874
auto maybeKind = getCombinerOpKind(reduceOp);
1875-
if (!(maybeKind && (*maybeKind == vector::CombiningKind::ADD ||
1876-
(oper == Pool && isSupportedPoolKind(*maybeKind))))) {
1875+
if (!maybeKind || (*maybeKind != vector::CombiningKind::ADD &&
1876+
(oper != Pool || !isSupportedPoolKind(*maybeKind)))) {
18771877
return;
18781878
}
18791879

0 commit comments

Comments
 (0)