Skip to content

Commit e3c5c56

Browse files
committed
fix typos in comments
1 parent 908a6eb commit e3c5c56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,7 @@ static Value rewriteI2ToI8SignedExt(PatternRewriter &rewriter, Location loc,
12491249
assert(srcVecType.getElementType().isSignlessInteger(2) &&
12501250
"Expected i2 type");
12511251

1252-
// 1. Generate a bitcast vector<Xxi2> -> vector<X/4xi8>.
1252+
// 1. Generate a bitcast vector<Xxi2> -> vector<X/2xi8>.
12531253
SmallVector<int64_t> i8VecShape = llvm::to_vector(srcVecType.getShape());
12541254
constexpr int64_t i2Toi8BitwidthFactor = 4;
12551255
i8VecShape.back() = i8VecShape.back() / i2Toi8BitwidthFactor;
@@ -1302,7 +1302,7 @@ static Value rewriteI2ToI8UnsignedExt(PatternRewriter &rewriter, Location loc,
13021302
assert(srcVecType.getElementType().isSignlessInteger(2) &&
13031303
"Expected i2 type");
13041304

1305-
// 1. Generate a bitcast vector<Xxi2> -> vector<X/4xi8>.
1305+
// 1. Generate a bitcast vector<Xxi2> -> vector<X/2xi8>.
13061306
SmallVector<int64_t> i8VecShape = llvm::to_vector(srcVecType.getShape());
13071307
constexpr int64_t i2Toi8BitwidthFactor = 4;
13081308
i8VecShape.back() = i8VecShape.back() / i2Toi8BitwidthFactor;

0 commit comments

Comments
 (0)