Skip to content

Commit a75537d

Browse files
committed
clang-format
1 parent 743d25b commit a75537d

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4442,8 +4442,8 @@ static SDValue lowerScalarInsert(SDValue Scalar, SDValue VL, MVT VT,
44424442
unsigned ExtOpc =
44434443
isa<ConstantSDNode>(Scalar) ? ISD::SIGN_EXTEND : ISD::ANY_EXTEND;
44444444
Scalar = DAG.getNode(ExtOpc, DL, XLenVT, Scalar);
4445-
return DAG.getNode(RISCVISD::VMV_S_X_VL, DL, VT,
4446-
DAG.getUNDEF(VT), Scalar, VL);
4445+
return DAG.getNode(RISCVISD::VMV_S_X_VL, DL, VT, DAG.getUNDEF(VT), Scalar,
4446+
VL);
44474447
}
44484448

44494449
// Can this shuffle be performed on exactly one (possibly larger) input?
@@ -4477,7 +4477,6 @@ static SDValue getSingleShuffleSrc(MVT VT, MVT ContainerVT, SDValue V1,
44774477
return Src;
44784478
}
44794479

4480-
44814480
/// Is this shuffle interleaving contiguous elements from one vector into the
44824481
/// even elements and contiguous elements from another vector into the odd
44834482
/// elements. \p EvenSrc will contain the element that should be in the first
@@ -4594,9 +4593,9 @@ static int isElementRotate(int &LoSrc, int &HiSrc, ArrayRef<int> Mask) {
45944593
// element type must be a legal element type.
45954594
// [a, p, b, q, c, r, d, s] -> [a, b, c, d] (Factor=2, Index=0)
45964595
// -> [p, q, r, s] (Factor=2, Index=1)
4597-
static SDValue getDeinterleaveShiftAndTrunc(const SDLoc &DL, MVT VT, SDValue Src,
4598-
unsigned Factor, unsigned Index,
4599-
SelectionDAG &DAG) {
4596+
static SDValue getDeinterleaveShiftAndTrunc(const SDLoc &DL, MVT VT,
4597+
SDValue Src, unsigned Factor,
4598+
unsigned Index, SelectionDAG &DAG) {
46004599
unsigned EltBits = VT.getScalarSizeInBits();
46014600
ElementCount SrcEC = Src.getValueType().getVectorElementCount();
46024601
MVT WideSrcVT = MVT::getVectorVT(MVT::getIntegerVT(EltBits * Factor),
@@ -4610,8 +4609,8 @@ static SDValue getDeinterleaveShiftAndTrunc(const SDLoc &DL, MVT VT, SDValue Src
46104609
DAG.getConstant(Shift, DL, WideSrcVT));
46114610
Res = DAG.getNode(ISD::TRUNCATE, DL, ResVT, Res);
46124611
MVT IntVT = VT.changeVectorElementTypeToInteger();
4613-
Res = DAG.getNode(ISD::INSERT_SUBVECTOR, DL, IntVT, DAG.getUNDEF(IntVT),
4614-
Res, DAG.getVectorIdxConstant(0, DL));
4612+
Res = DAG.getNode(ISD::INSERT_SUBVECTOR, DL, IntVT, DAG.getUNDEF(IntVT), Res,
4613+
DAG.getVectorIdxConstant(0, DL));
46154614
return DAG.getBitcast(VT, Res);
46164615
}
46174616

@@ -5302,8 +5301,8 @@ static SDValue lowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG,
53025301
if (ShuffleVectorInst::isReverseMask(Mask, NumElts) && V2.isUndef())
53035302
return DAG.getNode(ISD::VECTOR_REVERSE, DL, VT, V1);
53045303

5305-
// If this is a deinterleave(2,4,8) and we can widen the vector, then we can use
5306-
// shift and truncate to perform the shuffle.
5304+
// If this is a deinterleave(2,4,8) and we can widen the vector, then we can
5305+
// use shift and truncate to perform the shuffle.
53075306
// TODO: For Factor=6, we can perform the first step of the deinterleave via
53085307
// shift-and-trunc reducing total cost for everything except an mf8 result.
53095308
// TODO: For Factor=4,8, we can do the same when the ratio isn't high enough
@@ -5318,16 +5317,16 @@ static SDValue lowerVECTOR_SHUFFLE(SDValue Op, SelectionDAG &DAG,
53185317
if (SDValue Src = getSingleShuffleSrc(VT, ContainerVT, V1, V2)) {
53195318
if (Src.getValueType() == VT) {
53205319
EVT WideVT = VT.getDoubleNumVectorElementsVT();
5321-
Src = DAG.getNode(ISD::INSERT_SUBVECTOR, DL, WideVT, DAG.getUNDEF(WideVT),
5322-
Src, DAG.getVectorIdxConstant(0, DL));
5320+
Src = DAG.getNode(ISD::INSERT_SUBVECTOR, DL, WideVT,
5321+
DAG.getUNDEF(WideVT), Src,
5322+
DAG.getVectorIdxConstant(0, DL));
53235323
}
53245324
return getDeinterleaveShiftAndTrunc(DL, VT, Src, Factor, Index, DAG);
53255325
}
53265326
}
53275327
}
53285328
}
53295329

5330-
53315330
if (SDValue V =
53325331
lowerVECTOR_SHUFFLEAsVSlideup(DL, VT, V1, V2, Mask, Subtarget, DAG))
53335332
return V;

0 commit comments

Comments
 (0)