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:
parent
9ee8c0e769
commit
7aea955fa2
@ -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
Block a user