Skip to content

Commit a3af099

Browse files
authored
[mlir][NFC] Fix comment explaining ConverVectorLoad (#67864)
The new number of elements should be the original one divided by a scale factor computed from old and new bit width.
1 parent e0b702f commit a3af099

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ struct ConvertVectorLoad final : OpConversionPattern<vector::LoadOp> {
6767
//
6868
// can be replaced with
6969
//
70-
// %1 = vector.load %0[%linear_index] : memref<12xi8>, vector<2xi8>
70+
// %1 = vector.load %0[%linear_index] : memref<6xi8>, vector<2xi8>
7171
// %2 = vector.bitcast %1 : vector<2xi8> to vector<4xi4>
7272
//
7373
// TODO: Currently, only the even number of elements loading is supported.

0 commit comments

Comments
 (0)