// The given type may be something like <17 x i32>, which is not MVT,
// but can be represented as (non-simple) EVT.
EVT Ty = EVT::getEVT(VecTy, /*HandleUnknown*/false);
- if (Ty.getSizeInBits() <= 64 || !Ty.getVectorElementType().isSimple())
+ if (!Ty.getVectorElementType().isSimple())
return false;
auto isHvxTy = [this, IncludeBool](MVT SimpleTy) {
// qualifies for HVX, dividing it in half after each step.
MVT ElemTy = Ty.getVectorElementType().getSimpleVT();
unsigned VecLen = PowerOf2Ceil(Ty.getVectorNumElements());
- while (ElemTy.getSizeInBits() * VecLen > 64) {
+ while (VecLen > 1) {
MVT SimpleTy = MVT::getVectorVT(ElemTy, VecLen);
if (SimpleTy.isValid() && isHvxTy(SimpleTy))
return true;