Skip to content

Commit 5f4e210

Browse files
committed
Switch special case handling.
1 parent 4cbc151 commit 5f4e210

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22352,11 +22352,11 @@ static SDValue performSubWithBorrowCombine(SDNode *N, SelectionDAG &DAG) {
2235222352

2235322353
SDLoc DL(N);
2235422354
SDValue N0 = N->getOperand(0);
22355-
if (N0->getOpcode() != ISD::SUB)
22356-
return DAG.getNode(AArch64ISD::SBC, DL, VT, N0, DAG.getConstant(0, DL, VT),
22357-
Flags);
22358-
return DAG.getNode(AArch64ISD::SBC, DL, VT, N0.getOperand(0),
22359-
N0.getOperand(1), Flags);
22355+
if (N0->getOpcode() == ISD::SUB)
22356+
return DAG.getNode(AArch64ISD::SBC, DL, VT, N0.getOperand(0),
22357+
N0.getOperand(1), Flags);
22358+
return DAG.getNode(AArch64ISD::SBC, DL, VT, N0, DAG.getConstant(0, DL, VT),
22359+
Flags);
2236022360
}
2236122361

2236222362
static SDValue performAddSubCombine(SDNode *N,

0 commit comments

Comments
 (0)