[Mlir-commits] [mlir] d258021 - [mlir] Fix a warning
Kazu Hirata
llvmlistbot at llvm.org
Wed Nov 30 08:57:16 PST 2022
Author: Kazu Hirata
Date: 2022-11-30T08:57:07-08:00
New Revision: d258021c0859d8a2410ec344f1f9b2391a5162b2
URL: https://github.com/llvm/llvm-project/commit/d258021c0859d8a2410ec344f1f9b2391a5162b2
DIFF: https://github.com/llvm/llvm-project/commit/d258021c0859d8a2410ec344f1f9b2391a5162b2.diff
LOG: [mlir] Fix a warning
This patch fixes:
mlir/lib/Dialect/Vector/IR/VectorOps.cpp:1751:13: error: unused
function 'allBitsSet' [-Werror,-Wunused-function]
Added:
Modified:
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
index c1d0fc369164..328601c7f94f 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -1748,13 +1748,6 @@ llvm::SetVector<int64_t> BroadcastOp::computeBroadcastedUnitDims() {
getVectorType().getShape());
}
-static bool allBitsSet(llvm::SmallBitVector &bv, int64_t lb, int64_t ub) {
- for (int64_t i = lb; i < ub; ++i)
- if (!bv.test(i))
- return false;
- return true;
-}
-
/// Broadcast `value` to a vector of `dstShape`, knowing that exactly the
/// `broadcastedDims` dimensions in the dstShape are broadcasted.
/// This requires (and asserts) that the broadcast is free of dim-1
More information about the Mlir-commits
mailing list