[Mlir-commits] [mlir] 690b9c9 - [MLIR] Apply clang-tidy fixes for readability-container-size-empty in DecomposeGenericByUnfoldingPermutation.cpp (NFC)
Mehdi Amini
llvmlistbot at llvm.org
Wed Sep 10 14:52:05 PDT 2025
Author: Mehdi Amini
Date: 2025-09-10T14:49:52-07:00
New Revision: 690b9c991b40dea6e116510d9c9562d50e800db4
URL: https://github.com/llvm/llvm-project/commit/690b9c991b40dea6e116510d9c9562d50e800db4
DIFF: https://github.com/llvm/llvm-project/commit/690b9c991b40dea6e116510d9c9562d50e800db4.diff
LOG: [MLIR] Apply clang-tidy fixes for readability-container-size-empty in DecomposeGenericByUnfoldingPermutation.cpp (NFC)
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/DecomposeGenericByUnfoldingPermutation.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/DecomposeGenericByUnfoldingPermutation.cpp b/mlir/lib/Dialect/Linalg/Transforms/DecomposeGenericByUnfoldingPermutation.cpp
index b7da20c108f3e..9015cbb096f88 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/DecomposeGenericByUnfoldingPermutation.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/DecomposeGenericByUnfoldingPermutation.cpp
@@ -208,7 +208,7 @@ LogicalResult DecomposeProjectedPermutation::matchAndRewrite(
// Does it require broadcast?
if (!broadcastedDims.empty()) {
- assert(broadcastedDims.size() && "should have non size broadcast");
+ assert(!broadcastedDims.empty() && "should have non size broadcast");
Value emptyTensor = tensor::EmptyOp::create(rewriter, loc, outputShape,
inputRTType.getElementType());
More information about the Mlir-commits
mailing list