Skip to content

Commit 9869df2

Browse files
committed
Improve comment
1 parent d0685e7 commit 9869df2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6405,8 +6405,9 @@ static SDValue foldCONCAT_VECTORS(const SDLoc &DL, EVT VT,
64056405
if (VT.isScalableVector())
64066406
return SDValue();
64076407

6408-
// A CONCAT_VECTOR with all UNDEF/BUILD_VECTOR operands can be
6409-
// simplified to one big BUILD_VECTOR.
6408+
// A CONCAT_VECTOR of scalar sources, such as UNDEF, BUILD_VECTOR and
6409+
// single-element INSERT_VECTOR_ELT operands can be simplified to one big
6410+
// BUILD_VECTOR.
64106411
// FIXME: Add support for SCALAR_TO_VECTOR as well.
64116412
EVT SVT = VT.getScalarType();
64126413
SmallVector<SDValue, 16> Elts;

0 commit comments

Comments
 (0)