@@ -23409,7 +23409,7 @@ RISCVTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
2340923409 if (TRI->isTypeLegalForClass(*RC, VT.SimpleTy))
2341023410 return std::make_pair(0U, RC);
2341123411
23412- if (VT.isFixedLengthVector() && Subtarget.useRVVForFixedLengthVectors( )) {
23412+ if (VT.isFixedLengthVector() && useRVVForFixedLengthVectorVT(VT )) {
2341323413 MVT ContainerVT = getContainerForFixedLengthVector(VT);
2341423414 if (TRI->isTypeLegalForClass(*RC, ContainerVT))
2341523415 return std::make_pair(0U, RC);
@@ -23428,7 +23428,7 @@ RISCVTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
2342823428 if (TRI->isTypeLegalForClass(*RC, VT.SimpleTy))
2342923429 return std::make_pair(0U, RC);
2343023430
23431- if (VT.isFixedLengthVector() && Subtarget.useRVVForFixedLengthVectors( )) {
23431+ if (VT.isFixedLengthVector() && useRVVForFixedLengthVectorVT(VT )) {
2343223432 MVT ContainerVT = getContainerForFixedLengthVector(VT);
2343323433 if (TRI->isTypeLegalForClass(*RC, ContainerVT))
2343423434 return std::make_pair(0U, RC);
@@ -23438,7 +23438,7 @@ RISCVTargetLowering::getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI,
2343823438 if (TRI->isTypeLegalForClass(RISCV::VMV0RegClass, VT.SimpleTy))
2343923439 return std::make_pair(0U, &RISCV::VMV0RegClass);
2344023440
23441- if (VT.isFixedLengthVector() && Subtarget.useRVVForFixedLengthVectors( )) {
23441+ if (VT.isFixedLengthVector() && useRVVForFixedLengthVectorVT(VT )) {
2344223442 MVT ContainerVT = getContainerForFixedLengthVector(VT);
2344323443 // VT here might be coerced to vector with i8 elements, so we need to
2344423444 // check if this is a M1 register here instead of checking VMV0RegClass.
0 commit comments