forked from OSchip/llvm-project
[AArch64][SVE] Use getPTrue uniformly.NFC.
This commit is contained in:
parent
0dc5dc6531
commit
3f919dfe0d
|
@ -4007,8 +4007,8 @@ SDValue AArch64TargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
|
|||
return DAG.getNode(AArch64ISD::SPLICE, dl, Op.getValueType(),
|
||||
Op.getOperand(1), Op.getOperand(2), Op.getOperand(3));
|
||||
case Intrinsic::aarch64_sve_ptrue:
|
||||
return DAG.getNode(AArch64ISD::PTRUE, dl, Op.getValueType(),
|
||||
Op.getOperand(1));
|
||||
return getPTrue(DAG, dl, Op.getValueType(),
|
||||
cast<ConstantSDNode>(Op.getOperand(1))->getZExtValue());
|
||||
case Intrinsic::aarch64_sve_clz:
|
||||
return DAG.getNode(AArch64ISD::CTLZ_MERGE_PASSTHRU, dl, Op.getValueType(),
|
||||
Op.getOperand(2), Op.getOperand(3), Op.getOperand(1));
|
||||
|
@ -18080,8 +18080,7 @@ static SDValue getPredicateForFixedLengthVector(SelectionDAG &DAG, SDLoc &DL,
|
|||
break;
|
||||
}
|
||||
|
||||
return DAG.getNode(AArch64ISD::PTRUE, DL, MaskVT,
|
||||
DAG.getTargetConstant(PgPattern, DL, MVT::i64));
|
||||
return getPTrue(DAG, DL, MaskVT, PgPattern);
|
||||
}
|
||||
|
||||
static SDValue getPredicateForScalableVector(SelectionDAG &DAG, SDLoc &DL,
|
||||
|
|
Loading…
Reference in New Issue