forked from OSchip/llvm-project
Use N0 instead of N->getOperand(0) in DagCombiner::visitAdd. NFC
llvm-svn: 293903
This commit is contained in:
parent
672c93f421
commit
f3e421d6e9
|
@ -1875,7 +1875,7 @@ SDValue DAGCombiner::visitADD(SDNode *N) {
|
|||
// and similar xforms where the inner op is either ~0 or 0.
|
||||
if (NumSignBits == DestBits &&
|
||||
isOneConstantOrOneSplatConstant(N1->getOperand(1)))
|
||||
return DAG.getNode(ISD::SUB, DL, VT, N->getOperand(0), AndOp0);
|
||||
return DAG.getNode(ISD::SUB, DL, VT, N0, AndOp0);
|
||||
}
|
||||
|
||||
// add (sext i1), X -> sub X, (zext i1)
|
||||
|
|
Loading…
Reference in New Issue