OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e39a2ba
)
[DAG] fix formatting; NFC
author
Sanjay Patel
<spatel@rotateright.com>
Mon, 6 Mar 2017 15:27:57 +0000
(15:27 +0000)
committer
Sanjay Patel
<spatel@rotateright.com>
Mon, 6 Mar 2017 15:27:57 +0000
(15:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297015
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index
5b29f18
..
4c2135e
100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
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;