summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-03-06 15:27:57 +0000
committerSanjay Patel <spatel@rotateright.com>2017-03-06 15:27:57 +0000
commit6b029a53808965d620dac25e393ee6d5554d2476 (patch)
treeeb62e14f4142146b6527af5f709cba1423b6790b /llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
parent6b31b15b5a4c5bd531fbddf1dd963fa33414e341 (diff)
downloadbcm5719-llvm-6b029a53808965d620dac25e393ee6d5554d2476.tar.gz
bcm5719-llvm-6b029a53808965d620dac25e393ee6d5554d2476.zip
[DAG] fix formatting; NFC
llvm-svn: 297015
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 5b29f18c79b..4c2135e665d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -2390,8 +2390,7 @@ SDValue DAGCombiner::visitSDIV(SDNode *N) {
return N0;
// fold (sdiv X, -1) -> 0-X
if (N1C && N1C->isAllOnesValue())
- return DAG.getNode(ISD::SUB, DL, VT,
- DAG.getConstant(0, DL, VT), N0);
+ return DAG.getNode(ISD::SUB, DL, VT, DAG.getConstant(0, DL, VT), N0);
if (SDValue NewSel = foldBinOpIntoSelect(N))
return NewSel;
OpenPOWER on IntegriCloud