Skip to content

Commit 5fc67e4

Browse files
tclin914aokblast
authored andcommitted
[RISCV] Use CONCAT_VECTORS instead of INSERT_SUBVECTOR. NFC. (llvm#164226)
1 parent 096dd6c commit 5fc67e4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12649,10 +12649,7 @@ SDValue RISCVTargetLowering::lowerVECTOR_REVERSE(SDValue Op,
1264912649
Lo = DAG.getNode(ISD::VECTOR_REVERSE, DL, LoVT, Lo);
1265012650
Hi = DAG.getNode(ISD::VECTOR_REVERSE, DL, HiVT, Hi);
1265112651
// Reassemble the low and high pieces reversed.
12652-
// FIXME: This is a CONCAT_VECTORS.
12653-
SDValue Res = DAG.getInsertSubvector(DL, DAG.getUNDEF(VecVT), Hi, 0);
12654-
return DAG.getInsertSubvector(DL, Res, Lo,
12655-
LoVT.getVectorMinNumElements());
12652+
return DAG.getNode(ISD::CONCAT_VECTORS, DL, VecVT, Hi, Lo);
1265612653
}
1265712654

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

0 commit comments

Comments
 (0)