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:
85d63bb
)
Fix this logic.
author
Chris Lattner
<sabre@nondot.org>
Sat, 15 Oct 2005 22:35:40 +0000
(22:35 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sat, 15 Oct 2005 22:35:40 +0000
(22:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23756
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 35c981d7f3db02de613c2490b3fdded997d0a468..5b1d10335cf4499c4930d8f3a18ad1885426561b 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-808,7
+808,7
@@
SDOperand DAGCombiner::visitAND(SDNode *N) {
if (ConstantSDNode *N01C = dyn_cast<ConstantSDNode>(N0.getOperand(1))) {
// If the RHS of the AND has zeros where the sign bits of the SRA will
// land, turn the SRA into an SRL.
- if (MaskedValueIsZero(N1, (~0ULL <<
N01C->getValue(
)) &
+ if (MaskedValueIsZero(N1, (~0ULL <<
(OpSizeInBits-N01C->getValue()
)) &
(~0ULL>>(64-OpSizeInBits)), TLI)) {
WorkList.push_back(N);
CombineTo(N0.Val, DAG.getNode(ISD::SRL, VT, N0.getOperand(0),