Skip to content

Commit e5e1c5f

Browse files
committed
[AMDGPU] Fix clang format issue.
1 parent 2c9aa28 commit e5e1c5f

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
@@ -6822,15 +6822,14 @@ static unsigned getExtOpcodeForPromotedOp(SDValue Op) {
68226822
}
68236823
}
68246824

6825-
SDValue SITargetLowering::combineAnd(SDValue Op,
6826-
DAGCombinerInfo &DCI) const {
6825+
SDValue SITargetLowering::combineAnd(SDValue Op, DAGCombinerInfo &DCI) const {
68276826
const unsigned Opc = Op.getOpcode();
68286827
assert(Opc == ISD::AND);
68296828

68306829
auto &DAG = DCI.DAG;
68316830
SDLoc DL(Op);
68326831

6833-
if(hasAndNot(Op)) {
6832+
if (hasAndNot(Op)) {
68346833
SDValue LHS = Op->getOperand(0);
68356834
SDValue RHS = Op->getOperand(1);
68366835

@@ -6839,20 +6838,24 @@ SDValue SITargetLowering::combineAnd(SDValue Op,
68396838
SDValue Y = RHS->getOperand(0);
68406839
SDValue NotZ = RHS->getOperand(1);
68416840

6842-
if (NotZ.getOpcode() == ISD::XOR && isAllOnesConstant(NotZ->getOperand(1))) {
6841+
if (NotZ.getOpcode() == ISD::XOR &&
6842+
isAllOnesConstant(NotZ->getOperand(1))) {
68436843
SDValue Z = NotZ->getOperand(0);
68446844

68456845
if (!isa<ConstantSDNode>(Y)) {
68466846
SDValue NotY = DAG.getNOT(DL, Y, Y.getValueType());
6847-
SDValue AndNotYZ = DAG.getNode(ISD::AND, DL, Y.getValueType(), NotY, Z);
6848-
SDValue NotAndNotYZ = DAG.getNOT(DL, AndNotYZ, AndNotYZ.getValueType());
6849-
SDValue NewAnd = DAG.getNode(ISD::AND, DL, Op.getValueType(), LHS, NotAndNotYZ);
6847+
SDValue AndNotYZ =
6848+
DAG.getNode(ISD::AND, DL, Y.getValueType(), NotY, Z);
6849+
SDValue NotAndNotYZ =
6850+
DAG.getNOT(DL, AndNotYZ, AndNotYZ.getValueType());
6851+
SDValue NewAnd =
6852+
DAG.getNode(ISD::AND, DL, Op.getValueType(), LHS, NotAndNotYZ);
68506853
return NewAnd;
68516854
}
68526855
}
68536856
}
68546857
}
6855-
6858+
68566859
EVT OpTy = (Opc != ISD::SETCC) ? Op.getValueType()
68576860
: Op->getOperand(0).getValueType();
68586861
auto ExtTy = OpTy.changeElementType(MVT::i32);

0 commit comments

Comments
 (0)