@@ -32966,7 +32966,7 @@ static SDValue combineBitcastvxi1(SelectionDAG &DAG, SDValue BitCast,
32966
32966
const X86Subtarget &Subtarget) {
32967
32967
EVT VT = BitCast.getValueType();
32968
32968
SDValue N0 = BitCast.getOperand(0);
32969
- EVT VecVT = N0-> getValueType(0 );
32969
+ EVT VecVT = N0. getValueType();
32970
32970
32971
32971
if (!VT.isScalarInteger() || !VecVT.isSimple())
32972
32972
return SDValue();
@@ -33006,8 +33006,8 @@ static SDValue combineBitcastvxi1(SelectionDAG &DAG, SDValue BitCast,
33006
33006
SExtVT = MVT::v4i32;
33007
33007
// For cases such as (i4 bitcast (v4i1 setcc v4i64 v1, v2))
33008
33008
// sign-extend to a 256-bit operation to avoid truncation.
33009
- if (N0-> getOpcode() == ISD::SETCC && Subtarget.hasAVX() &&
33010
- N0-> getOperand(0).getValueType().is256BitVector()) {
33009
+ if (N0. getOpcode() == ISD::SETCC && Subtarget.hasAVX() &&
33010
+ N0. getOperand(0).getValueType().is256BitVector()) {
33011
33011
SExtVT = MVT::v4i64;
33012
33012
}
33013
33013
break;
@@ -33018,9 +33018,9 @@ static SDValue combineBitcastvxi1(SelectionDAG &DAG, SDValue BitCast,
33018
33018
// If the setcc operand is 128-bit, prefer sign-extending to 128-bit over
33019
33019
// 256-bit because the shuffle is cheaper than sign extending the result of
33020
33020
// the compare.
33021
- if (N0-> getOpcode() == ISD::SETCC && Subtarget.hasAVX() &&
33022
- (N0-> getOperand(0).getValueType().is256BitVector() ||
33023
- N0-> getOperand(0).getValueType().is512BitVector())) {
33021
+ if (N0. getOpcode() == ISD::SETCC && Subtarget.hasAVX() &&
33022
+ (N0. getOperand(0).getValueType().is256BitVector() ||
33023
+ N0. getOperand(0).getValueType().is512BitVector())) {
33024
33024
SExtVT = MVT::v8i32;
33025
33025
}
33026
33026
break;
@@ -35765,8 +35765,8 @@ static SDValue combineVectorPack(SDNode *N, SelectionDAG &DAG,
35765
35765
// Constant Folding.
35766
35766
APInt UndefElts0, UndefElts1;
35767
35767
SmallVector<APInt, 32> EltBits0, EltBits1;
35768
- if ((N0-> isUndef() || N->isOnlyUserOf(N0.getNode())) &&
35769
- (N1-> isUndef() || N->isOnlyUserOf(N1.getNode())) &&
35768
+ if ((N0. isUndef() || N->isOnlyUserOf(N0.getNode())) &&
35769
+ (N1. isUndef() || N->isOnlyUserOf(N1.getNode())) &&
35770
35770
getTargetConstantBitsFromNode(N0, SrcBitsPerElt, UndefElts0, EltBits0) &&
35771
35771
getTargetConstantBitsFromNode(N1, SrcBitsPerElt, UndefElts1, EltBits1)) {
35772
35772
unsigned NumLanes = VT.getSizeInBits() / 128;
@@ -35974,8 +35974,8 @@ static SDValue combineCompareEqual(SDNode *N, SelectionDAG &DAG,
35974
35974
if (Subtarget.hasSSE2() && isAndOrOfSetCCs(SDValue(N, 0U), opcode)) {
35975
35975
SDValue N0 = N->getOperand(0);
35976
35976
SDValue N1 = N->getOperand(1);
35977
- SDValue CMP0 = N0-> getOperand(1);
35978
- SDValue CMP1 = N1-> getOperand(1);
35977
+ SDValue CMP0 = N0. getOperand(1);
35978
+ SDValue CMP1 = N1. getOperand(1);
35979
35979
SDLoc DL(N);
35980
35980
35981
35981
// The SETCCs should both refer to the same CMP.
@@ -36126,7 +36126,7 @@ static SDValue PromoteMaskArithmetic(SDNode *N, SelectionDAG &DAG,
36126
36126
return SDValue();
36127
36127
36128
36128
// The type of the truncated inputs.
36129
- if (N0-> getOperand(0).getValueType() != VT)
36129
+ if (N0. getOperand(0).getValueType() != VT)
36130
36130
return SDValue();
36131
36131
36132
36132
// The right side has to be a 'trunc' or a constant vector.
@@ -36142,9 +36142,9 @@ static SDValue PromoteMaskArithmetic(SDNode *N, SelectionDAG &DAG,
36142
36142
return SDValue();
36143
36143
36144
36144
// Set N0 and N1 to hold the inputs to the new wide operation.
36145
- N0 = N0-> getOperand(0);
36145
+ N0 = N0. getOperand(0);
36146
36146
if (RHSTrunc)
36147
- N1 = N1-> getOperand(0);
36147
+ N1 = N1. getOperand(0);
36148
36148
else
36149
36149
N1 = DAG.getNode(ISD::ZERO_EXTEND, DL, VT, N1);
36150
36150
@@ -39531,7 +39531,7 @@ static SDValue combineExtSetcc(SDNode *N, SelectionDAG &DAG,
39531
39531
SDLoc dl(N);
39532
39532
39533
39533
// Only do this combine with AVX512 for vector extends.
39534
- if (!Subtarget.hasAVX512() || !VT.isVector() || N0-> getOpcode() != ISD::SETCC)
39534
+ if (!Subtarget.hasAVX512() || !VT.isVector() || N0. getOpcode() != ISD::SETCC)
39535
39535
return SDValue();
39536
39536
39537
39537
// Only combine legal element types.
@@ -39547,7 +39547,7 @@ static SDValue combineExtSetcc(SDNode *N, SelectionDAG &DAG,
39547
39547
39548
39548
// Don't fold if the condition code can't be handled by PCMPEQ/PCMPGT since
39549
39549
// that's the only integer compares with we have.
39550
- ISD::CondCode CC = cast<CondCodeSDNode>(N0-> getOperand(2))->get();
39550
+ ISD::CondCode CC = cast<CondCodeSDNode>(N0. getOperand(2))->get();
39551
39551
if (ISD::isUnsignedIntSetCC(CC))
39552
39552
return SDValue();
39553
39553
0 commit comments