Skip to content

Commit da27407

Browse files
committed
Update comment
1 parent 70d7ce1 commit da27407

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
@@ -27526,8 +27526,8 @@ static SDValue scalarizeBinOpOfSplats(SDNode *N, SelectionDAG &DAG,
2752627526
if ((Opcode == ISD::MULHS || Opcode == ISD::MULHU) && !TLI.isTypeLegal(EltVT))
2752727527
return SDValue();
2752827528

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

0 commit comments

Comments
 (0)