@@ -14197,7 +14197,7 @@ static SDValue LowerZERO_EXTEND_AVX512(SDValue Op,
14197
14197
SDValue In = Op->getOperand(0);
14198
14198
MVT InVT = In.getSimpleValueType();
14199
14199
SDLoc DL(Op);
14200
- unsigned int NumElts = VT.getVectorNumElements();
14200
+ unsigned NumElts = VT.getVectorNumElements();
14201
14201
if (NumElts != 8 && NumElts != 16 && !Subtarget.hasBWI())
14202
14202
return SDValue();
14203
14203
@@ -15924,8 +15924,8 @@ SDValue X86TargetLowering::LowerSETCC(SDValue Op, SelectionDAG &DAG) const {
15924
15924
}
15925
15925
}
15926
15926
15927
- bool isFP = Op1.getSimpleValueType().isFloatingPoint();
15928
- unsigned X86CC = TranslateX86CC(CC, dl, isFP , Op0, Op1, DAG);
15927
+ bool IsFP = Op1.getSimpleValueType().isFloatingPoint();
15928
+ unsigned X86CC = TranslateX86CC(CC, dl, IsFP , Op0, Op1, DAG);
15929
15929
if (X86CC == X86::COND_INVALID)
15930
15930
return SDValue();
15931
15931
@@ -15954,7 +15954,7 @@ SDValue X86TargetLowering::LowerSETCCE(SDValue Op, SelectionDAG &DAG) const {
15954
15954
SDValue SetCC = DAG.getNode(X86ISD::SETCC, DL, MVT::i8,
15955
15955
DAG.getConstant(CC, DL, MVT::i8), Cmp.getValue(1));
15956
15956
if (Op.getSimpleValueType() == MVT::i1)
15957
- return DAG.getNode(ISD::TRUNCATE, DL, MVT::i1, SetCC);
15957
+ return DAG.getNode(ISD::TRUNCATE, DL, MVT::i1, SetCC);
15958
15958
return SetCC;
15959
15959
}
15960
15960
@@ -15965,17 +15965,10 @@ static bool isX86LogicalCmp(SDValue Op) {
15965
15965
Opc == X86ISD::SAHF)
15966
15966
return true;
15967
15967
if (Op.getResNo() == 1 &&
15968
- (Opc == X86ISD::ADD ||
15969
- Opc == X86ISD::SUB ||
15970
- Opc == X86ISD::ADC ||
15971
- Opc == X86ISD::SBB ||
15972
- Opc == X86ISD::SMUL ||
15973
- Opc == X86ISD::UMUL ||
15974
- Opc == X86ISD::INC ||
15975
- Opc == X86ISD::DEC ||
15976
- Opc == X86ISD::OR ||
15977
- Opc == X86ISD::XOR ||
15978
- Opc == X86ISD::AND))
15968
+ (Opc == X86ISD::ADD || Opc == X86ISD::SUB || Opc == X86ISD::ADC ||
15969
+ Opc == X86ISD::SBB || Opc == X86ISD::SMUL || Opc == X86ISD::UMUL ||
15970
+ Opc == X86ISD::INC || Opc == X86ISD::DEC || Opc == X86ISD::OR ||
15971
+ Opc == X86ISD::XOR || Opc == X86ISD::AND))
15979
15972
return true;
15980
15973
15981
15974
if (Op.getResNo() == 2 && Opc == X86ISD::UMUL)
@@ -15995,7 +15988,7 @@ static bool isTruncWithZeroHighBitsInput(SDValue V, SelectionDAG &DAG) {
15995
15988
}
15996
15989
15997
15990
SDValue X86TargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
15998
- bool addTest = true;
15991
+ bool AddTest = true;
15999
15992
SDValue Cond = Op.getOperand(0);
16000
15993
SDValue Op1 = Op.getOperand(1);
16001
15994
SDValue Op2 = Op.getOperand(2);
@@ -16175,7 +16168,7 @@ SDValue X86TargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
16175
16168
if ((isX86LogicalCmp(Cmp) && !IllegalFPCMov) ||
16176
16169
Opc == X86ISD::BT) { // FIXME
16177
16170
Cond = Cmp;
16178
- addTest = false;
16171
+ AddTest = false;
16179
16172
}
16180
16173
} else if (CondOpcode == ISD::USUBO || CondOpcode == ISD::SSUBO ||
16181
16174
CondOpcode == ISD::UADDO || CondOpcode == ISD::SADDO ||
@@ -16209,10 +16202,10 @@ SDValue X86TargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
16209
16202
Cond = X86Op.getValue(1);
16210
16203
16211
16204
CC = DAG.getConstant(X86Cond, DL, MVT::i8);
16212
- addTest = false;
16205
+ AddTest = false;
16213
16206
}
16214
16207
16215
- if (addTest ) {
16208
+ if (AddTest ) {
16216
16209
// Look past the truncate if the high bits are known zero.
16217
16210
if (isTruncWithZeroHighBitsInput(Cond, DAG))
16218
16211
Cond = Cond.getOperand(0);
@@ -16223,12 +16216,12 @@ SDValue X86TargetLowering::LowerSELECT(SDValue Op, SelectionDAG &DAG) const {
16223
16216
if (SDValue NewSetCC = LowerToBT(Cond, ISD::SETNE, DL, DAG)) {
16224
16217
CC = NewSetCC.getOperand(0);
16225
16218
Cond = NewSetCC.getOperand(1);
16226
- addTest = false;
16219
+ AddTest = false;
16227
16220
}
16228
16221
}
16229
16222
}
16230
16223
16231
- if (addTest ) {
16224
+ if (AddTest ) {
16232
16225
CC = DAG.getConstant(X86::COND_NE, DL, MVT::i8);
16233
16226
Cond = EmitTest(Cond, X86::COND_NE, DL, DAG);
16234
16227
}
@@ -16300,7 +16293,7 @@ static SDValue LowerSIGN_EXTEND_AVX512(SDValue Op,
16300
16293
VTElt.getSizeInBits() >= 32))))
16301
16294
return DAG.getNode(X86ISD::VSEXT, dl, VT, In);
16302
16295
16303
- unsigned int NumElts = VT.getVectorNumElements();
16296
+ unsigned NumElts = VT.getVectorNumElements();
16304
16297
16305
16298
if (NumElts != 8 && NumElts != 16 && !Subtarget.hasBWI())
16306
16299
return SDValue();
@@ -16313,11 +16306,10 @@ static SDValue LowerSIGN_EXTEND_AVX512(SDValue Op,
16313
16306
16314
16307
assert (InVT.getVectorElementType() == MVT::i1 && "Unexpected vector type");
16315
16308
MVT ExtVT = NumElts == 8 ? MVT::v8i64 : MVT::v16i32;
16316
- SDValue NegOne =
16317
- DAG.getConstant(APInt::getAllOnesValue(ExtVT.getScalarSizeInBits()), dl,
16318
- ExtVT);
16319
- SDValue Zero =
16320
- DAG.getConstant(APInt::getNullValue(ExtVT.getScalarSizeInBits()), dl, ExtVT);
16309
+ SDValue NegOne = DAG.getConstant(
16310
+ APInt::getAllOnesValue(ExtVT.getScalarSizeInBits()), dl, ExtVT);
16311
+ SDValue Zero = DAG.getConstant(
16312
+ APInt::getNullValue(ExtVT.getScalarSizeInBits()), dl, ExtVT);
16321
16313
16322
16314
SDValue V = DAG.getNode(ISD::VSELECT, dl, ExtVT, In, NegOne, Zero);
16323
16315
if (VT.is512BitVector())
@@ -16434,7 +16426,7 @@ static SDValue LowerSIGN_EXTEND(SDValue Op, const X86Subtarget &Subtarget,
16434
16426
SDValue OpHi = DAG.getVectorShuffle(InVT, dl, In, Undef, ShufMask2);
16435
16427
16436
16428
MVT HalfVT = MVT::getVectorVT(VT.getVectorElementType(),
16437
- VT.getVectorNumElements()/ 2);
16429
+ VT.getVectorNumElements() / 2);
16438
16430
16439
16431
OpLo = DAG.getNode(X86ISD::VSEXT, dl, HalfVT, OpLo);
16440
16432
OpHi = DAG.getNode(X86ISD::VSEXT, dl, HalfVT, OpHi);
0 commit comments