Skip to content

Commit b8e34cd

Browse files
committed
use getConstant
1 parent 0e69d90 commit b8e34cd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9807,10 +9807,8 @@ SDValue AArch64TargetLowering::LowerCTPOP_PARITY(SDValue Op,
98079807
if (Subtarget->hasDotProd() && VT.getScalarSizeInBits() != 16 &&
98089808
VT.getVectorNumElements() >= 2) {
98099809
EVT DT = VT == MVT::v2i64 ? MVT::v4i32 : VT;
9810-
SDValue Zeros = DAG.getSplatBuildVector(
9811-
DT, DL, DAG.getConstant(0, DL, DT.getScalarType()));
9812-
SDValue Ones =
9813-
DAG.getSplatBuildVector(VT8Bit, DL, DAG.getConstant(1, DL, MVT::i8));
9810+
SDValue Zeros = DAG.getConstant(0, DL, DT);
9811+
SDValue Ones = DAG.getConstant(1, DL, VT8Bit);
98149812

98159813
if (VT == MVT::v2i64) {
98169814
Val = DAG.getNode(AArch64ISD::UDOT, DL, DT, Zeros, Ones, Val);

0 commit comments

Comments
 (0)