[Mlir-commits] [mlir] 2d70faa - Apply clang-tidy fixes for readability-simplify-boolean-expr in TosaToLinalg.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Tue Jun 28 04:22:26 PDT 2022
Author: Mehdi Amini
Date: 2022-06-28T11:21:43Z
New Revision: 2d70faa299cbd17b18f51f12bca652f30148c0c8
URL: https://github.com/llvm/llvm-project/commit/2d70faa299cbd17b18f51f12bca652f30148c0c8
DIFF: https://github.com/llvm/llvm-project/commit/2d70faa299cbd17b18f51f12bca652f30148c0c8.diff
LOG: Apply clang-tidy fixes for readability-simplify-boolean-expr in TosaToLinalg.cpp (NFC)
Added:
Modified:
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
index 133a3631b7d5a..5711ffe003f47 100644
--- a/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
+++ b/mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
@@ -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 {
More information about the Mlir-commits
mailing list