diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp --- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -7734,8 +7734,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};