mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-14 23:48:56 +00:00
Spelling fix: extened->extended. Trailing whitespace in same function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172793 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5a529e4f86
commit
0a38861364
@ -16967,29 +16967,30 @@ static SDValue PerformSExtCombine(SDNode *N, SelectionDAG &DAG,
|
|||||||
TargetLowering::DAGCombinerInfo &DCI,
|
TargetLowering::DAGCombinerInfo &DCI,
|
||||||
const X86Subtarget *Subtarget) {
|
const X86Subtarget *Subtarget) {
|
||||||
EVT VT = N->getValueType(0);
|
EVT VT = N->getValueType(0);
|
||||||
|
|
||||||
if (!VT.isVector())
|
if (!VT.isVector())
|
||||||
return SDValue();
|
return SDValue();
|
||||||
|
|
||||||
SDValue In = N->getOperand(0);
|
SDValue In = N->getOperand(0);
|
||||||
EVT InVT = In.getValueType();
|
EVT InVT = In.getValueType();
|
||||||
DebugLoc dl = N->getDebugLoc();
|
DebugLoc dl = N->getDebugLoc();
|
||||||
unsigned ExtenedEltSize = VT.getVectorElementType().getSizeInBits();
|
unsigned ExtendedEltSize = VT.getVectorElementType().getSizeInBits();
|
||||||
|
|
||||||
// Split SIGN_EXTEND operation to use vmovsx instruction when possible
|
// Split SIGN_EXTEND operation to use vmovsx instruction when possible
|
||||||
if (InVT == MVT::v8i8) {
|
if (InVT == MVT::v8i8) {
|
||||||
if (ExtenedEltSize > 16 && !Subtarget->hasInt256())
|
if (ExtendedEltSize > 16 && !Subtarget->hasInt256())
|
||||||
In = DAG.getNode(ISD::SIGN_EXTEND, dl, MVT::v8i16, In);
|
In = DAG.getNode(ISD::SIGN_EXTEND, dl, MVT::v8i16, In);
|
||||||
if (ExtenedEltSize > 32)
|
if (ExtendedEltSize > 32)
|
||||||
In = DAG.getNode(ISD::SIGN_EXTEND, dl, MVT::v8i32, In);
|
In = DAG.getNode(ISD::SIGN_EXTEND, dl, MVT::v8i32, In);
|
||||||
return DAG.getNode(ISD::SIGN_EXTEND, dl, VT, In);
|
return DAG.getNode(ISD::SIGN_EXTEND, dl, VT, In);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((InVT == MVT::v4i8 || InVT == MVT::v4i16) &&
|
if ((InVT == MVT::v4i8 || InVT == MVT::v4i16) &&
|
||||||
ExtenedEltSize > 32 && !Subtarget->hasInt256()) {
|
ExtendedEltSize > 32 && !Subtarget->hasInt256()) {
|
||||||
In = DAG.getNode(ISD::SIGN_EXTEND, dl, MVT::v4i32, In);
|
In = DAG.getNode(ISD::SIGN_EXTEND, dl, MVT::v4i32, In);
|
||||||
return DAG.getNode(ISD::SIGN_EXTEND, dl, VT, In);
|
return DAG.getNode(ISD::SIGN_EXTEND, dl, VT, In);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!DCI.isBeforeLegalizeOps())
|
if (!DCI.isBeforeLegalizeOps())
|
||||||
return SDValue();
|
return SDValue();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user