mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
simplify control flow; NFC
llvm-svn: 230342
This commit is contained in:
parent
fb5af71543
commit
2d353d537e
@ -22906,16 +22906,17 @@ static SDValue PerformINSERTPSCombine(SDNode *N, SelectionDAG &DAG,
|
||||
// countS and just gets an f32 from that address.
|
||||
unsigned DestIndex =
|
||||
cast<ConstantSDNode>(N->getOperand(2))->getZExtValue() >> 6;
|
||||
|
||||
Ld = NarrowVectorLoadToElement(cast<LoadSDNode>(Ld), DestIndex, DAG);
|
||||
} else
|
||||
return SDValue();
|
||||
|
||||
// Create this as a scalar to vector to match the instruction pattern.
|
||||
SDValue LoadScalarToVector = DAG.getNode(ISD::SCALAR_TO_VECTOR, dl, VT, Ld);
|
||||
// countS bits are ignored when loading from memory on insertps, which
|
||||
// means we don't need to explicitly set them to 0.
|
||||
return DAG.getNode(X86ISD::INSERTPS, dl, VT, N->getOperand(0),
|
||||
LoadScalarToVector, N->getOperand(2));
|
||||
// Create this as a scalar to vector to match the instruction pattern.
|
||||
SDValue LoadScalarToVector = DAG.getNode(ISD::SCALAR_TO_VECTOR, dl, VT, Ld);
|
||||
// countS bits are ignored when loading from memory on insertps, which
|
||||
// means we don't need to explicitly set them to 0.
|
||||
return DAG.getNode(X86ISD::INSERTPS, dl, VT, N->getOperand(0),
|
||||
LoadScalarToVector, N->getOperand(2));
|
||||
}
|
||||
return SDValue();
|
||||
}
|
||||
|
||||
static SDValue PerformBLENDICombine(SDNode *N, SelectionDAG &DAG) {
|
||||
|
Loading…
Reference in New Issue
Block a user