diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-03-03 01:58:01 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-03-03 01:58:01 +0000 |
commit | 32f9eb2bc3ddaf17e790f086056829e4ad91ab66 (patch) | |
tree | e848221cc52e12ba93ad0928a636a91949d921f1 | |
parent | f85eff76b2d29396bc7d61b0f5833075bac8ea21 (diff) |
Use APInt instead of zext value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97631 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 5cd70c9cd0..e4ff44d2a2 100644 --- 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->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), |