mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 04:45:00 +00:00
Invert the subvector insertion to be more likely to be taken as a COPY
llvm-svn: 136324
This commit is contained in:
parent
e24a043703
commit
e0d86eec4f
@ -4809,9 +4809,9 @@ X86TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const {
|
||||
NumElems/2);
|
||||
|
||||
// Recreate the wider vector with the lower and upper part.
|
||||
SDValue Vec = Insert128BitVector(DAG.getNode(ISD::UNDEF, dl, VT), Upper,
|
||||
DAG.getConstant(NumElems/2, MVT::i32), DAG, dl);
|
||||
return Insert128BitVector(Vec, Lower, DAG.getConstant(0, MVT::i32),
|
||||
SDValue Vec = Insert128BitVector(DAG.getNode(ISD::UNDEF, dl, VT), Lower,
|
||||
DAG.getConstant(0, MVT::i32), DAG, dl);
|
||||
return Insert128BitVector(Vec, Upper, DAG.getConstant(NumElems/2, MVT::i32),
|
||||
DAG, dl);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user