Skip to content

Commit 2e09090

Browse files
committed
Apply clang-tidy fixes for readability-simplify-boolean-expr in Vectorization.cpp (NFC)
1 parent 3af5ab2 commit 2e09090

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
@@ -2499,8 +2499,8 @@ struct Conv1DGenerator
24992499
return;
25002500
// (LHS has dimension NCW/NWC and RES has dimension NFW/NCW/NWF/NWC) OR
25012501
// (non-channeled convolution -> LHS and RHS both have single dimensions).
2502-
if (!((lhsShapedType.getRank() == 3 && resShapedType.getRank() == 3) ||
2503-
(lhsShapedType.getRank() == 1 && resShapedType.getRank() == 1)))
2502+
if ((lhsShapedType.getRank() != 3 || resShapedType.getRank() != 3) &&
2503+
(lhsShapedType.getRank() != 1 || resShapedType.getRank() != 1))
25042504
return;
25052505

25062506
Operation *reduceOp = matchLinalgReduction(linalgOp.getDpsInitOperand(0));

0 commit comments

Comments
 (0)