@@ -1945,8 +1945,7 @@ TypeInfo ASTContext::getTypeInfoImpl(const Type *T) const {
19451945 else if (VT->getVectorKind() == VectorKind::SveFixedLengthPredicate)
19461946 // Adjust the alignment for fixed-length SVE predicates.
19471947 Align = 16;
1948- else if (VT->getVectorKind() == VectorKind::RVVFixedLengthData ||
1949- VT->getVectorKind() == VectorKind::RVVFixedLengthMask)
1948+ else if (VT->getVectorKind() == VectorKind::RVVFixedLengthData)
19501949 // Adjust the alignment for fixed-length RVV vectors.
19511950 Align = std::min<unsigned>(64, Width);
19521951 break;
@@ -9417,9 +9416,7 @@ bool ASTContext::areCompatibleVectorTypes(QualType FirstVec,
94179416 Second->getVectorKind() != VectorKind::SveFixedLengthData &&
94189417 Second->getVectorKind() != VectorKind::SveFixedLengthPredicate &&
94199418 First->getVectorKind() != VectorKind::RVVFixedLengthData &&
9420- Second->getVectorKind() != VectorKind::RVVFixedLengthData &&
9421- First->getVectorKind() != VectorKind::RVVFixedLengthMask &&
9422- Second->getVectorKind() != VectorKind::RVVFixedLengthMask)
9419+ Second->getVectorKind() != VectorKind::RVVFixedLengthData)
94239420 return true;
94249421
94259422 return false;
@@ -9525,11 +9522,8 @@ static uint64_t getRVVTypeSize(ASTContext &Context, const BuiltinType *Ty) {
95259522
95269523 ASTContext::BuiltinVectorTypeInfo Info = Context.getBuiltinVectorTypeInfo(Ty);
95279524
9528- unsigned EltSize = Context.getTypeSize(Info.ElementType);
9529- if (Info.ElementType == Context.BoolTy)
9530- EltSize = 1;
9531-
9532- unsigned MinElts = Info.EC.getKnownMinValue();
9525+ uint64_t EltSize = Context.getTypeSize(Info.ElementType);
9526+ uint64_t MinElts = Info.EC.getKnownMinValue();
95339527 return VScale->first * MinElts * EltSize;
95349528}
95359529
@@ -9543,12 +9537,6 @@ bool ASTContext::areCompatibleRVVTypes(QualType FirstType,
95439537 auto IsValidCast = [this](QualType FirstType, QualType SecondType) {
95449538 if (const auto *BT = FirstType->getAs<BuiltinType>()) {
95459539 if (const auto *VT = SecondType->getAs<VectorType>()) {
9546- if (VT->getVectorKind() == VectorKind::RVVFixedLengthMask) {
9547- BuiltinVectorTypeInfo Info = getBuiltinVectorTypeInfo(BT);
9548- return FirstType->isRVVVLSBuiltinType() &&
9549- Info.ElementType == BoolTy &&
9550- getTypeSize(SecondType) == getRVVTypeSize(*this, BT);
9551- }
95529540 if (VT->getVectorKind() == VectorKind::RVVFixedLengthData ||
95539541 VT->getVectorKind() == VectorKind::Generic)
95549542 return FirstType->isRVVVLSBuiltinType() &&
0 commit comments