projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bba9aa3
)
Fix comment
author
Chris Lattner
<sabre@nondot.org>
Mon, 10 Oct 2005 16:52:03 +0000
(16:52 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 10 Oct 2005 16:52:03 +0000
(16:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23686
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 f15ce5784c6c23b62f6bfa348d78d87f1cc2d8ea..1e5499aaabfd6a446044164d8cc67d679057aa62 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-216,7
+216,7
@@
static bool MaskedValueIsZero(const SDOperand &Op, uint64_t Mask,
}
return false;
case ISD::ADD:
- // (add X, Y) & C == 0 iff (X&C)
&
(Y&C) == 0 and all bits are low bits.
+ // (add X, Y) & C == 0 iff (X&C)
|
(Y&C) == 0 and all bits are low bits.
if ((Mask&(Mask+1)) == 0) { // All low bits
if (MaskedValueIsZero(Op.getOperand(0), Mask, TLI) &&
MaskedValueIsZero(Op.getOperand(1), Mask, TLI))