Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

Commit ac35c1d

Browse files
committed
[RISCV] Minor style cleanup in lowerVECTOR_SHUFFLEAsVNSRL [nfc]
1 parent 5fd82ca commit ac35c1d

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3111,15 +3111,13 @@ static SDValue lowerVECTOR_SHUFFLEAsVNSRL(const SDLoc &DL, MVT VT,
31113111
// Convert the vector to a wider integer type with the original element
31123112
// count. This also converts FP to int.
31133113
unsigned EltBits = ContainerVT.getScalarSizeInBits();
3114-
MVT WideIntEltVT = MVT::getIntegerVT(EltBits * 2);
31153114
MVT WideIntContainerVT =
3116-
MVT::getVectorVT(WideIntEltVT, ContainerVT.getVectorElementCount());
3115+
MVT::getVectorVT(MVT::getIntegerVT(EltBits * 2),
3116+
ContainerVT.getVectorElementCount());
31173117
Src = DAG.getBitcast(WideIntContainerVT, Src);
31183118

3119-
// Convert to the integer version of the container type.
3120-
MVT IntEltVT = MVT::getIntegerVT(EltBits);
3121-
MVT IntContainerVT =
3122-
MVT::getVectorVT(IntEltVT, ContainerVT.getVectorElementCount());
3119+
// The integer version of the container type.
3120+
MVT IntContainerVT = ContainerVT.changeVectorElementTypeToInteger();
31233121

31243122
// If we want even elements, then the shift amount is 0. Otherwise, shift by
31253123
// the original element size.

0 commit comments

Comments
 (0)