Skip to content

Commit 92427f6

Browse files
committed
[AMDGPU] Fix clang format issue.
1 parent 8919a21 commit 92427f6

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7029,15 +7029,14 @@ static unsigned getExtOpcodeForPromotedOp(SDValue Op) {
70297029
}
70307030
}
70317031

7032-
SDValue SITargetLowering::combineAnd(SDValue Op,
7033-
DAGCombinerInfo &DCI) const {
7032+
SDValue SITargetLowering::combineAnd(SDValue Op, DAGCombinerInfo &DCI) const {
70347033
const unsigned Opc = Op.getOpcode();
70357034
assert(Opc == ISD::AND);
70367035

70377036
auto &DAG = DCI.DAG;
70387037
SDLoc DL(Op);
70397038

7040-
if(hasAndNot(Op)) {
7039+
if (hasAndNot(Op)) {
70417040
SDValue LHS = Op->getOperand(0);
70427041
SDValue RHS = Op->getOperand(1);
70437042

@@ -7046,20 +7045,24 @@ SDValue SITargetLowering::combineAnd(SDValue Op,
70467045
SDValue Y = RHS->getOperand(0);
70477046
SDValue NotZ = RHS->getOperand(1);
70487047

7049-
if (NotZ.getOpcode() == ISD::XOR && isAllOnesConstant(NotZ->getOperand(1))) {
7048+
if (NotZ.getOpcode() == ISD::XOR &&
7049+
isAllOnesConstant(NotZ->getOperand(1))) {
70507050
SDValue Z = NotZ->getOperand(0);
70517051

70527052
if (!isa<ConstantSDNode>(Y)) {
70537053
SDValue NotY = DAG.getNOT(DL, Y, Y.getValueType());
7054-
SDValue AndNotYZ = DAG.getNode(ISD::AND, DL, Y.getValueType(), NotY, Z);
7055-
SDValue NotAndNotYZ = DAG.getNOT(DL, AndNotYZ, AndNotYZ.getValueType());
7056-
SDValue NewAnd = DAG.getNode(ISD::AND, DL, Op.getValueType(), LHS, NotAndNotYZ);
7054+
SDValue AndNotYZ =
7055+
DAG.getNode(ISD::AND, DL, Y.getValueType(), NotY, Z);
7056+
SDValue NotAndNotYZ =
7057+
DAG.getNOT(DL, AndNotYZ, AndNotYZ.getValueType());
7058+
SDValue NewAnd =
7059+
DAG.getNode(ISD::AND, DL, Op.getValueType(), LHS, NotAndNotYZ);
70577060
return NewAnd;
70587061
}
70597062
}
70607063
}
70617064
}
7062-
7065+
70637066
EVT OpTy = (Opc != ISD::SETCC) ? Op.getValueType()
70647067
: Op->getOperand(0).getValueType();
70657068
auto ExtTy = OpTy.changeElementType(MVT::i32);

0 commit comments

Comments
 (0)