[Mlir-commits] [mlir] f264d9a - [Linalg] Fix a warning
Kazu Hirata
llvmlistbot at llvm.org
Sat Sep 21 13:59:42 PDT 2024
Author: Kazu Hirata
Date: 2024-09-21T13:59:36-07:00
New Revision: f264d9a9d56f165777f0e1750b3bdb74059fffd0
URL: https://github.com/llvm/llvm-project/commit/f264d9a9d56f165777f0e1750b3bdb74059fffd0
DIFF: https://github.com/llvm/llvm-project/commit/f264d9a9d56f165777f0e1750b3bdb74059fffd0.diff
LOG: [Linalg] Fix a warning
This patch fixes:
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp:821:12: error:
variable 'countNonUnitDim' set but not used
[-Werror,-Wunused-but-set-variable]
Added:
Modified:
mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
index 2244f29967dfe4..6800a0fec278c6 100644
--- a/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
+++ b/mlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
@@ -829,6 +829,7 @@ static uint64_t getNonUnitLoopDim(LinalgOp linalgOp) {
assert(linalgOp.hasDynamicShape() ||
countNonUnitDim == 1 && "For statically shaped Linalg Ops, only one "
"non-unit loop dim is expected");
+ (void)countNonUnitDim;
return nonUnitDim;
}
More information about the Mlir-commits
mailing list