summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Sechet <deadalnix@gmail.com>2017-02-02 16:07:44 +0000
committerAmaury Sechet <deadalnix@gmail.com>2017-02-02 16:07:44 +0000
commitf3e421d6e99eca984cec7ee1c6acfd2d7b23d391 (patch)
tree0414cbe14f5a1bdf8b8ed9aab84f238a4595d72f
parent672c93f42147f0f995240eb6c8ffa18a2bb58ad0 (diff)
downloadbcm5719-llvm-f3e421d6e99eca984cec7ee1c6acfd2d7b23d391.tar.gz
bcm5719-llvm-f3e421d6e99eca984cec7ee1c6acfd2d7b23d391.zip
Use N0 instead of N->getOperand(0) in DagCombiner::visitAdd. NFC
llvm-svn: 293903
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 315214385bb..a0488e1b1cc 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -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)
OpenPOWER on IntegriCloud