Skip to content

Commit ac0df73

Browse files
committed
Update comment
1 parent 4c6f15f commit ac0df73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27525,8 +27525,8 @@ static SDValue scalarizeBinOpOfSplats(SDNode *N, SelectionDAG &DAG,
2752527525
if ((Opcode == ISD::MULHS || Opcode == ISD::MULHU) && !TLI.isTypeLegal(EltVT))
2752627526
return SDValue();
2752727527

27528-
// If all lanes but 1 are undefined, no need to splat the scalar result.
27529-
// TODO: Keep track of undefs and use that info in the general case.
27528+
// If all result lanes but 1 are undefined, no need to splat the scalar
27529+
// result.
2753027530
if (N0.getOpcode() == ISD::BUILD_VECTOR && N0.getOpcode() == N1.getOpcode()) {
2753127531
// bo (build_vec ..undef, X, undef...), (build_vec ..undef, Y, undef...) -->
2753227532
// build_vec ..undef, (bo X, Y), undef...

0 commit comments

Comments
 (0)