mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:50:30 +00:00
[x86] Clarify that this lowering only applies to vectors and is only
used when we have SSE2. llvm-svn: 212300
This commit is contained in:
parent
39ed527ccb
commit
9a23698203
@ -15481,15 +15481,14 @@ static SDValue LowerScalarVariableShift(SDValue Op, SelectionDAG &DAG,
|
||||
|
||||
static SDValue LowerShift(SDValue Op, const X86Subtarget* Subtarget,
|
||||
SelectionDAG &DAG) {
|
||||
|
||||
MVT VT = Op.getSimpleValueType();
|
||||
SDLoc dl(Op);
|
||||
SDValue R = Op.getOperand(0);
|
||||
SDValue Amt = Op.getOperand(1);
|
||||
SDValue V;
|
||||
|
||||
if (!Subtarget->hasSSE2())
|
||||
return SDValue();
|
||||
assert(VT.isVector() && "Custom lowering only for vector shifts!");
|
||||
assert(Subtarget->hasSSE2() && "Only custom lower when we have SSE2!");
|
||||
|
||||
V = LowerScalarImmediateShift(Op, DAG, Subtarget);
|
||||
if (V.getNode())
|
||||
|
Loading…
Reference in New Issue
Block a user