Skip to content

Commit

Permalink
Apply clang-tidy fixes for readability-simplify-boolean-expr in TosaT…
Browse files Browse the repository at this point in the history
…oLinalg.cpp (NFC)
  • Loading branch information
joker-eph committed Jun 28, 2022
1 parent cf3f477 commit 2d70faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
Expand Up @@ -944,7 +944,7 @@ static bool createReassociationMapsForCollapse(

// If both iterators didn't reach the end, we have leftover dimentions which
// implies that we have a mismatch in shape.
return !(currSrcDim != srcShape.size() || currDstDim != dstShape.size());
return currSrcDim == srcShape.size() && currDstDim == dstShape.size();
}

namespace {
Expand Down

0 comments on commit 2d70faa

Please sign in to comment.