Skip to content

Commit 21130d3

Browse files
committed
[RISCV] One last migration to getInsertSubvector [nfc]
1 parent 5fe69fd commit 21130d3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11973,9 +11973,8 @@ SDValue RISCVTargetLowering::lowerVECTOR_REVERSE(SDValue Op,
1197311973
// Reassemble the low and high pieces reversed.
1197411974
// FIXME: This is a CONCAT_VECTORS.
1197511975
SDValue Res = DAG.getInsertSubvector(DL, DAG.getUNDEF(VecVT), Hi, 0);
11976-
return DAG.getNode(
11977-
ISD::INSERT_SUBVECTOR, DL, VecVT, Res, Lo,
11978-
DAG.getVectorIdxConstant(LoVT.getVectorMinNumElements(), DL));
11976+
return DAG.getInsertSubvector(DL, Res, Lo,
11977+
LoVT.getVectorMinNumElements());
1197911978
}
1198011979

1198111980
// Just promote the int type to i16 which will double the LMUL.

0 commit comments

Comments
 (0)