Skip to content

Commit 4169650

Browse files
committed
[mlir] Remove an unused variable and correct types.
No functionality change.
1 parent 43c0a45 commit 4169650

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

mlir/lib/Dialect/Vector/IR/VectorOps.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1788,8 +1788,8 @@ ShuffleOp::inferReturnTypes(MLIRContext *, Optional<Location>,
17881788
return success();
17891789
}
17901790

1791-
static bool isStepIndexArray(ArrayAttr idxArr, int64_t begin, int64_t width) {
1792-
int64_t expected = begin;
1791+
static bool isStepIndexArray(ArrayAttr idxArr, uint64_t begin, size_t width) {
1792+
uint64_t expected = begin;
17931793
return idxArr.size() == width &&
17941794
llvm::all_of(idxArr.getAsValueRange<IntegerAttr>(),
17951795
[&expected](auto attr) {

mlir/lib/Dialect/Vector/Transforms/VectorInsertExtractStridedSliceRewritePatterns.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ class DecomposeNDExtractStridedSlice
258258
int64_t stride =
259259
op.getStrides().getValue().front().cast<IntegerAttr>().getInt();
260260

261-
auto loc = op.getLoc();
262261
auto elemType = dstType.getElementType();
263262
assert(elemType.isSignlessIntOrIndexOrFloat());
264263

0 commit comments

Comments
 (0)