Skip to content

Commit 521aec0

Browse files
committed
Update comment
1 parent 8fe386a commit 521aec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ int mlir::spirv::getComputeVectorSize(int64_t size) {
14381438
SmallVector<int64_t>
14391439
mlir::spirv::getNativeVectorShapeImpl(vector::ToElementsOp op) {
14401440
VectorType srcVectorType = op.getSourceVectorType();
1441-
assert(srcVectorType.getRank() == 1); // Guaranteed by semantics
1441+
assert(srcVectorType.getRank() == 1); // Guaranteed by UnrollToElements.
14421442
int64_t vectorSize =
14431443
mlir::spirv::getComputeVectorSize(srcVectorType.getDimSize(0));
14441444
return {vectorSize};

0 commit comments

Comments
 (0)