If movl top bits are undef, let it be selected to movlps, etc.

llvm-svn: 50928
This commit is contained in:
Evan Cheng 2008-05-10 00:58:41 +00:00
parent bec201fa06
commit bb48d55a88
1 changed files with 1 additions and 2 deletions

View File

@ -6326,8 +6326,7 @@ static SDOperand PerformBuildVectorCombine(SDNode *N, SelectionDAG &DAG,
return SDOperand();
// This must be an insertion into a zero vector.
SDOperand HighElt = N->getOperand(1);
if (HighElt.getOpcode() != ISD::UNDEF &&
!isZeroNode(HighElt))
if (!isZeroNode(HighElt))
return SDOperand();
// Value must be a load.