Index: llvm/lib/Target/AArch64/AArch64ISelLowering.cpp =================================================================== --- llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -7718,8 +7718,8 @@ Op.getOperand(1).getValueType().isScalableVector() && "Only scalable vectors are supported"); - auto PredTy = VT.getVectorVT(*DAG.getContext(), MVT::i1, - VT.getVectorNumElements(), true); + auto PredTy = + VT.getVectorVT(*DAG.getContext(), MVT::i1, VT.getVectorElementCount()); SDValue Mask = getPTrue(DAG, DL, PredTy, AArch64SVEPredPattern::all); SmallVector Operands = {Mask};