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:
3ff37de
)
[DAGCombiner] Update comment. NFC
author
Xin Tong
<trent.xin.tong@gmail.com>
Fri, 21 Jul 2017 19:10:19 +0000
(19:10 +0000)
committer
Xin Tong
<trent.xin.tong@gmail.com>
Fri, 21 Jul 2017 19:10:19 +0000
(19:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308772
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
34912b7
..
677690b
100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-3258,7
+3258,7
@@
SDValue DAGCombiner::visitIMINMAX(SDNode *N) {
if (SDValue FoldedVOp = SimplifyVBinOp(N))
return FoldedVOp;
- // fold
(add c1, c2) -> c1+c2
+ // fold
operation with constant operands.
ConstantSDNode *N0C = getAsNonOpaqueConstant(N0);
ConstantSDNode *N1C = getAsNonOpaqueConstant(N1);
if (N0C && N1C)