@@ -609,7 +609,7 @@ void VETargetLowering::initVPUActions() {
609
609
// Short vector elements (EXCLUDING masks)
610
610
for (MVT VT : MVT::vector_valuetypes ()) {
611
611
MVT ElemVT = VT.getVectorElementType ();
612
- unsigned W = VT.getVectorNumElements ();
612
+ unsigned W = VT.getVectorMinNumElements ();
613
613
614
614
// Use default splitting for vlens > 512
615
615
if (W > PackedWidth)
@@ -722,7 +722,7 @@ void VETargetLowering::initVPUActions() {
722
722
LegalizeAction Action;
723
723
// FIXME query available vector width for this Op
724
724
const unsigned WidthLimit = Subtarget->hasPackedMode () ? 512 : 256 ;
725
- if (isLegalVectorVT (VT) && VT.getVectorNumElements () <= WidthLimit) {
725
+ if (isLegalVectorVT (VT) && VT.getVectorMinNumElements () <= WidthLimit) {
726
726
// We perform custom widening as necessary
727
727
Action = Custom;
728
728
} else {
@@ -976,11 +976,11 @@ VETargetLowering::getPreferredVectorAction(MVT VT) const {
976
976
return TypeScalarizeVector;
977
977
978
978
// The default action for one element vectors is to scalarize
979
- if (VT.getVectorNumElements () == 1 )
979
+ if (VT.getVectorMinNumElements () == 1 )
980
980
return TypeScalarizeVector;
981
981
982
982
// Split oversized vectors
983
- if (VT.getVectorNumElements () > 512 )
983
+ if (VT.getVectorMinNumElements () > 512 )
984
984
return TypeSplitVector;
985
985
986
986
// Promote short element vectors to i32
0 commit comments