Noticed by inspection - this was copied from the X86 target equivalent where we can assume its legal/simple.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367721
91177308-0d34-0410-b5e6-
96231b3b80d8
// If we don't demand the inserted element, return the base vector.
SDValue Vec = Op.getOperand(0);
auto *CIdx = dyn_cast<ConstantSDNode>(Op.getOperand(2));
- MVT VecVT = Vec.getSimpleValueType();
+ EVT VecVT = Vec.getValueType();
if (CIdx && CIdx->getAPIntValue().ult(VecVT.getVectorNumElements()) &&
!DemandedElts[CIdx->getZExtValue()])
return Vec;