Skip to content

Commit f75fe90

Browse files
committed
Update comment.
1 parent c44404b commit f75fe90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mlir/lib/Conversion/VectorToLLVM/ConvertVectorToLLVM.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1723,11 +1723,12 @@ struct VectorBroadcastScalarToLowRankLowering
17231723
return success();
17241724
}
17251725

1726-
// For 1-d vector, we additionally do a `vectorshuffle` if vector width > 1.
17271726
auto v =
17281727
LLVM::InsertElementOp::create(rewriter, broadcast.getLoc(), vectorType,
17291728
poison, adaptor.getSource(), zero);
17301729

1730+
// For 1-d vector, if vector width > 1, we additionally do a
1731+
// `vector shuffle`
17311732
int64_t width = cast<VectorType>(broadcast.getType()).getDimSize(0);
17321733
if (width == 1) {
17331734
rewriter.replaceOp(broadcast, v);

0 commit comments

Comments
 (0)