[Mlir-commits] [mlir] 4169650 - [mlir] Remove an unused variable and correct types.
Bill Wendling
llvmlistbot at llvm.org
Tue Apr 5 13:44:19 PDT 2022
Author: Bill Wendling
Date: 2022-04-05T13:44:12-07:00
New Revision: 4169650537622ef278b4d62ef5fb37aeb0ee9f4e
URL: https://github.com/llvm/llvm-project/commit/4169650537622ef278b4d62ef5fb37aeb0ee9f4e
DIFF: https://github.com/llvm/llvm-project/commit/4169650537622ef278b4d62ef5fb37aeb0ee9f4e.diff
LOG: [mlir] Remove an unused variable and correct types.
No functionality change.
Added:
Modified:
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
index 3b0dda0b14df0..eda77392041ba 100644
--- a/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+++ b/mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -1788,8 +1788,8 @@ ShuffleOp::inferReturnTypes(MLIRContext *, Optional<Location>,
return success();
}
-static bool isStepIndexArray(ArrayAttr idxArr, int64_t begin, int64_t width) {
- int64_t expected = begin;
+static bool isStepIndexArray(ArrayAttr idxArr, uint64_t begin, size_t width) {
+ uint64_t expected = begin;
return idxArr.size() == width &&
llvm::all_of(idxArr.getAsValueRange<IntegerAttr>(),
[&expected](auto attr) {
diff --git a/mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp b/mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp
index 224c7fbc01df4..4b22bffa93ced 100644
--- a/mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp
+++ b/mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp
@@ -258,7 +258,6 @@ class DecomposeNDExtractStridedSlice
int64_t stride =
op.getStrides().getValue().front().cast<IntegerAttr>().getInt();
- auto loc = op.getLoc();
auto elemType = dstType.getElementType();
assert(elemType.isSignlessIntOrIndexOrFloat());
More information about the Mlir-commits
mailing list