Skip to content

Commit f72ac5c

Browse files
committed
another update according to comments.
1 parent 9e7aedf commit f72ac5c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,15 +188,15 @@ static Value dynamicallyExtractSubVector(OpBuilder &rewriter, Location loc,
188188
return dest;
189189
}
190190

191-
/// Inserts a 1-D subvector into a 1-D `dest` vector at index `offset`.
191+
/// Inserts a 1-D subvector into a 1-D `dest` vector at index `destOffsetVar`.
192192
static Value dynamicallyInsertSubVector(RewriterBase &rewriter, Location loc,
193193
TypedValue<VectorType> source,
194194
Value dest, OpFoldResult destOffsetVar,
195-
int64_t length) {
195+
size_t length) {
196196
assert(length > 0 && "length must be greater than 0");
197197
Value destOffsetVal =
198198
getValueOrCreateConstantIndexOp(rewriter, loc, destOffsetVar);
199-
for (int i = 0; i < length; ++i) {
199+
for (size_t i = 0; i < length; ++i) {
200200
auto insertLoc = i == 0
201201
? destOffsetVal
202202
: rewriter.create<arith::AddIOp>(

0 commit comments

Comments
 (0)