[X86] LowerMSCATTER/MGATHER - reduce scope of MaskVT. NFCI.
Fixes cppcheck warning.
This commit is contained in:
parent
fabe52a741
commit
efe2f59ec4
|
@ -28525,7 +28525,6 @@ static SDValue LowerMSCATTER(SDValue Op, const X86Subtarget &Subtarget,
|
||||||
}
|
}
|
||||||
|
|
||||||
MVT IndexVT = Index.getSimpleValueType();
|
MVT IndexVT = Index.getSimpleValueType();
|
||||||
MVT MaskVT = Mask.getSimpleValueType();
|
|
||||||
|
|
||||||
// If the index is v2i32, we're being called by type legalization and we
|
// If the index is v2i32, we're being called by type legalization and we
|
||||||
// should just let the default handling take care of it.
|
// should just let the default handling take care of it.
|
||||||
|
@ -28543,7 +28542,7 @@ static SDValue LowerMSCATTER(SDValue Op, const X86Subtarget &Subtarget,
|
||||||
|
|
||||||
VT = MVT::getVectorVT(VT.getVectorElementType(), NumElts);
|
VT = MVT::getVectorVT(VT.getVectorElementType(), NumElts);
|
||||||
IndexVT = MVT::getVectorVT(IndexVT.getVectorElementType(), NumElts);
|
IndexVT = MVT::getVectorVT(IndexVT.getVectorElementType(), NumElts);
|
||||||
MaskVT = MVT::getVectorVT(MVT::i1, NumElts);
|
MVT MaskVT = MVT::getVectorVT(MVT::i1, NumElts);
|
||||||
|
|
||||||
Src = ExtendToType(Src, VT, DAG);
|
Src = ExtendToType(Src, VT, DAG);
|
||||||
Index = ExtendToType(Index, IndexVT, DAG);
|
Index = ExtendToType(Index, IndexVT, DAG);
|
||||||
|
@ -28677,7 +28676,6 @@ static SDValue LowerMGATHER(SDValue Op, const X86Subtarget &Subtarget,
|
||||||
SDValue Mask = N->getMask();
|
SDValue Mask = N->getMask();
|
||||||
SDValue PassThru = N->getPassThru();
|
SDValue PassThru = N->getPassThru();
|
||||||
MVT IndexVT = Index.getSimpleValueType();
|
MVT IndexVT = Index.getSimpleValueType();
|
||||||
MVT MaskVT = Mask.getSimpleValueType();
|
|
||||||
|
|
||||||
assert(VT.getScalarSizeInBits() >= 32 && "Unsupported gather op");
|
assert(VT.getScalarSizeInBits() >= 32 && "Unsupported gather op");
|
||||||
|
|
||||||
|
@ -28698,7 +28696,7 @@ static SDValue LowerMGATHER(SDValue Op, const X86Subtarget &Subtarget,
|
||||||
|
|
||||||
VT = MVT::getVectorVT(VT.getVectorElementType(), NumElts);
|
VT = MVT::getVectorVT(VT.getVectorElementType(), NumElts);
|
||||||
IndexVT = MVT::getVectorVT(IndexVT.getVectorElementType(), NumElts);
|
IndexVT = MVT::getVectorVT(IndexVT.getVectorElementType(), NumElts);
|
||||||
MaskVT = MVT::getVectorVT(MVT::i1, NumElts);
|
MVT MaskVT = MVT::getVectorVT(MVT::i1, NumElts);
|
||||||
|
|
||||||
PassThru = ExtendToType(PassThru, VT, DAG);
|
PassThru = ExtendToType(PassThru, VT, DAG);
|
||||||
Index = ExtendToType(Index, IndexVT, DAG);
|
Index = ExtendToType(Index, IndexVT, DAG);
|
||||||
|
|
Loading…
Reference in New Issue