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:
908adc6
)
Use getAllOnesConstants instead of -1 in DAGCombiner. NFC
author
Amaury Sechet
<deadalnix@gmail.com>
Wed, 3 Jul 2019 16:34:36 +0000
(16:34 +0000)
committer
Amaury Sechet
<deadalnix@gmail.com>
Wed, 3 Jul 2019 16:34:36 +0000
(16:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365054
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
2d7771e
..
b0e0175
100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-2699,7
+2699,7
@@
static SDValue flipBoolean(SDValue V, const SDLoc &DL,
Cst = DAG.getConstant(1, DL, VT);
break;
case TargetLowering::ZeroOrNegativeOneBooleanContent:
- Cst = DAG.get
Constant(-1,
DL, VT);
+ Cst = DAG.get
AllOnesConstant(
DL, VT);
break;
}