forked from OSchip/llvm-project
If movl top bits are undef, let it be selected to movlps, etc.
llvm-svn: 50928
This commit is contained in:
parent
bec201fa06
commit
bb48d55a88
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue