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:
f85eff7
)
Use APInt instead of zext value.
author
Bill Wendling
<isanbard@gmail.com>
Wed, 3 Mar 2010 01:58:01 +0000
(
01:58
+0000)
committer
Bill Wendling
<isanbard@gmail.com>
Wed, 3 Mar 2010 01:58:01 +0000
(
01:58
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97631
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 5cd70c9cd0a48c8889c6d670522f54d37d136295..e4ff44d2a2ec850d407f273a5d66fd7a2c57c8ef 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@
-2029,7
+2029,7
@@
SDValue DAGCombiner::visitOR(SDNode *N) {
if (N1C && N0.getOpcode() == ISD::AND && N0.getNode()->hasOneUse() &&
isa<ConstantSDNode>(N0.getOperand(1))) {
ConstantSDNode *C1 = cast<ConstantSDNode>(N0.getOperand(1));
- if ((C1->get
ZExtValue() & N1C->getZEx
tValue()) != 0)
+ if ((C1->get
APIntValue() & N1C->getAPIn
tValue()) != 0)
return DAG.getNode(ISD::AND, N->getDebugLoc(), VT,
DAG.getNode(ISD::OR, N0.getDebugLoc(), VT,
N0.getOperand(0), N1),