1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00

Use N0 instead of N->getOperand(0) in DagCombiner::visitAdd. NFC

llvm-svn: 293903
This commit is contained in:
Amaury Sechet 2017-02-02 16:07:44 +00:00
parent 9ee8c0e769
commit 7aea955fa2

View File

@ -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)