mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-11 21:56:15 +00:00
If movl top bits are undef, let it be selected to movlps, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50928 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b3e0a6d75c
commit
25210da757
@ -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
Block a user