summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-03-03 01:58:01 +0000
committerBill Wendling <isanbard@gmail.com>2010-03-03 01:58:01 +0000
commitc8d3add052065b3278e9462ae3d6c99123755c7e (patch)
tree1a4f7a8abbf44adad559aad91e5545651dbb21b9 /llvm/lib/CodeGen
parent46897d35cb27278a64faa1f5b484d69dbebbbfa0 (diff)
downloadbcm5719-llvm-c8d3add052065b3278e9462ae3d6c99123755c7e.tar.gz
bcm5719-llvm-c8d3add052065b3278e9462ae3d6c99123755c7e.zip
Use APInt instead of zext value.
llvm-svn: 97631
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
index 5cd70c9cd0a..e4ff44d2a2e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+++ b/llvm/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->getZExtValue() & N1C->getZExtValue()) != 0)
+ if ((C1->getAPIntValue() & N1C->getAPIntValue()) != 0)
return DAG.getNode(ISD::AND, N->getDebugLoc(), VT,
DAG.getNode(ISD::OR, N0.getDebugLoc(), VT,
N0.getOperand(0), N1),
OpenPOWER on IntegriCloud