Skip to content

Commit 5424fb1

Browse files
committed
[x86] fix formatting; NFC
1 parent ed4a913 commit 5424fb1

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28846,7 +28846,7 @@ SDValue X86TargetLowering::LowerWin64_INT128_TO_FP(SDValue Op,
2884628846

2884728847
// Return true if the required (according to Opcode) shift-imm form is natively
2884828848
// supported by the Subtarget
28849-
static bool SupportedVectorShiftWithImm(MVT VT, const X86Subtarget &Subtarget,
28849+
static bool supportedVectorShiftWithImm(MVT VT, const X86Subtarget &Subtarget,
2885028850
unsigned Opcode) {
2885128851
if (VT.getScalarSizeInBits() < 16)
2885228852
return false;
@@ -28866,14 +28866,14 @@ static bool SupportedVectorShiftWithImm(MVT VT, const X86Subtarget &Subtarget,
2886628866
// The shift amount is a variable, but it is the same for all vector lanes.
2886728867
// These instructions are defined together with shift-immediate.
2886828868
static
28869-
bool SupportedVectorShiftWithBaseAmnt(MVT VT, const X86Subtarget &Subtarget,
28869+
bool supportedVectorShiftWithBaseAmnt(MVT VT, const X86Subtarget &Subtarget,
2887028870
unsigned Opcode) {
28871-
return SupportedVectorShiftWithImm(VT, Subtarget, Opcode);
28871+
return supportedVectorShiftWithImm(VT, Subtarget, Opcode);
2887228872
}
2887328873

2887428874
// Return true if the required (according to Opcode) variable-shift form is
2887528875
// natively supported by the Subtarget
28876-
static bool SupportedVectorVarShift(MVT VT, const X86Subtarget &Subtarget,
28876+
static bool supportedVectorVarShift(MVT VT, const X86Subtarget &Subtarget,
2887728877
unsigned Opcode) {
2887828878

2887928879
if (!Subtarget.hasInt256() || VT.getScalarSizeInBits() < 16)
@@ -28949,7 +28949,7 @@ static SDValue LowerScalarImmediateShift(SDValue Op, SelectionDAG &DAG,
2894928949

2895028950
uint64_t ShiftAmt = APIntShiftAmt.getZExtValue();
2895128951

28952-
if (SupportedVectorShiftWithImm(VT, Subtarget, Op.getOpcode()))
28952+
if (supportedVectorShiftWithImm(VT, Subtarget, Op.getOpcode()))
2895328953
return getTargetVShiftByConstNode(X86Opc, dl, VT, R, ShiftAmt, DAG);
2895428954

2895528955
// i64 SRA needs to be performed as partial shifts.
@@ -29033,7 +29033,7 @@ static SDValue LowerScalarVariableShift(SDValue Op, SelectionDAG &DAG,
2903329033
unsigned X86OpcV = getTargetVShiftUniformOpcode(Opcode, true);
2903429034

2903529035
if (SDValue BaseShAmt = DAG.getSplatValue(Amt)) {
29036-
if (SupportedVectorShiftWithBaseAmnt(VT, Subtarget, Opcode)) {
29036+
if (supportedVectorShiftWithBaseAmnt(VT, Subtarget, Opcode)) {
2903729037
MVT EltVT = VT.getVectorElementType();
2903829038
assert(EltVT.bitsLE(MVT::i64) && "Unexpected element type!");
2903929039
if (EltVT != MVT::i64 && EltVT.bitsGT(MVT::i32))
@@ -29051,7 +29051,7 @@ static SDValue LowerScalarVariableShift(SDValue Op, SelectionDAG &DAG,
2905129051
!Subtarget.hasXOP()) {
2905229052
unsigned NumElts = VT.getVectorNumElements();
2905329053
MVT ExtVT = MVT::getVectorVT(MVT::i16, NumElts / 2);
29054-
if (SupportedVectorShiftWithBaseAmnt(ExtVT, Subtarget, Opcode)) {
29054+
if (supportedVectorShiftWithBaseAmnt(ExtVT, Subtarget, Opcode)) {
2905529055
unsigned LogicalOp = (Opcode == ISD::SHL ? ISD::SHL : ISD::SRL);
2905629056
unsigned LogicalX86Op = getTargetVShiftUniformOpcode(LogicalOp, false);
2905729057
BaseShAmt = DAG.getNode(ISD::ZERO_EXTEND, dl, MVT::i32, BaseShAmt);
@@ -29103,7 +29103,7 @@ static SDValue LowerScalarVariableShift(SDValue Op, SelectionDAG &DAG,
2910329103
return SDValue();
2910429104
}
2910529105

29106-
if (SupportedVectorShiftWithBaseAmnt(VT, Subtarget, Op.getOpcode()))
29106+
if (supportedVectorShiftWithBaseAmnt(VT, Subtarget, Op.getOpcode()))
2910729107
return DAG.getNode(X86OpcV, dl, VT, R, Op.getOperand(1));
2910829108
}
2910929109
return SDValue();
@@ -29196,7 +29196,7 @@ static SDValue LowerShift(SDValue Op, const X86Subtarget &Subtarget,
2919629196
if (SDValue V = LowerScalarVariableShift(Op, DAG, Subtarget))
2919729197
return V;
2919829198

29199-
if (SupportedVectorVarShift(VT, Subtarget, Opc))
29199+
if (supportedVectorVarShift(VT, Subtarget, Opc))
2920029200
return Op;
2920129201

2920229202
// XOP has 128-bit variable logical/arithmetic shifts.
@@ -29815,8 +29815,8 @@ static SDValue LowerRotate(SDValue Op, const X86Subtarget &Subtarget,
2981529815
}
2981629816

2981729817
bool ConstantAmt = ISD::isBuildVectorOfConstantSDNodes(Amt.getNode());
29818-
bool LegalVarShifts = SupportedVectorVarShift(VT, Subtarget, ISD::SHL) &&
29819-
SupportedVectorVarShift(VT, Subtarget, ISD::SRL);
29818+
bool LegalVarShifts = supportedVectorVarShift(VT, Subtarget, ISD::SHL) &&
29819+
supportedVectorVarShift(VT, Subtarget, ISD::SRL);
2982029820

2982129821
// Fallback for splats + all supported variable shifts.
2982229822
// Fallback for non-constants AVX2 vXi16 as well.
@@ -45816,7 +45816,7 @@ static SDValue combineAndMaskToShift(SDNode *N, SelectionDAG &DAG,
4581645816
if (isBitwiseNot(Op0))
4581745817
return SDValue();
4581845818

45819-
if (!SupportedVectorShiftWithImm(VT0.getSimpleVT(), Subtarget, ISD::SRL))
45819+
if (!supportedVectorShiftWithImm(VT0.getSimpleVT(), Subtarget, ISD::SRL))
4582045820
return SDValue();
4582145821

4582245822
unsigned EltBitWidth = VT0.getScalarSizeInBits();

0 commit comments

Comments
 (0)