This was copied from SVE, but is currently not applicable to RISC-V.
auto IsValidCast = [this](QualType FirstType, QualType SecondType) {
if (const auto *BT = FirstType->getAs<BuiltinType>()) {
if (const auto *VT = SecondType->getAs<VectorType>()) {
- // Predicates have the same representation as uint8 so we also have to
- // check the kind to make these types incompatible.
if (VT->getVectorKind() == VectorType::RVVFixedLengthDataVector)
return FirstType->isRVVVLSBuiltinType() &&
VT->getElementType().getCanonicalType() ==