Skip to content

Commit bb48d55

Browse files
author
Evan Cheng
committed
If movl top bits are undef, let it be selected to movlps, etc.
llvm-svn: 50928
1 parent bec201f commit bb48d55

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6326,8 +6326,7 @@ static SDOperand PerformBuildVectorCombine(SDNode *N, SelectionDAG &DAG,
63266326
return SDOperand();
63276327
// This must be an insertion into a zero vector.
63286328
SDOperand HighElt = N->getOperand(1);
6329-
if (HighElt.getOpcode() != ISD::UNDEF &&
6330-
!isZeroNode(HighElt))
6329+
if (!isZeroNode(HighElt))
63316330
return SDOperand();
63326331

63336332
// Value must be a load.

0 commit comments

Comments
 (0)