diff options
| author | Dan Gohman <gohman@apple.com> | 2008-09-12 16:56:44 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-09-12 16:56:44 +0000 |
| commit | effb894453a6d69a6c6becabb4451ec883d1fe2c (patch) | |
| tree | 02bab821b26d225db0ef80d441838217b5b385b1 /llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp | |
| parent | fa1472fd552d726d691c708f5dc6628392e13c83 (diff) | |
| download | bcm5719-llvm-effb894453a6d69a6c6becabb4451ec883d1fe2c.tar.gz bcm5719-llvm-effb894453a6d69a6c6becabb4451ec883d1fe2c.zip | |
Rename ConstantSDNode::getValue to getZExtValue, for consistency
with ConstantInt. This led to fixing a bug in TargetLowering.cpp
using getValue instead of getAPIntValue.
llvm-svn: 56159
Diffstat (limited to 'llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp')
| -rw-r--r-- | llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp index 5487eaa9642..8b298db243c 100644 --- a/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp +++ b/llvm/lib/Target/Alpha/AlphaISelDAGToDAG.cpp @@ -300,7 +300,7 @@ SDNode *AlphaDAGToDAGISel::Select(SDValue Op) { } case ISD::Constant: { - uint64_t uval = cast<ConstantSDNode>(N)->getValue(); + uint64_t uval = cast<ConstantSDNode>(N)->getZExtValue(); if (uval == 0) { SDValue Result = CurDAG->getCopyFromReg(CurDAG->getEntryNode(), @@ -426,8 +426,8 @@ SDNode *AlphaDAGToDAGISel::Select(SDValue Op) { if (N->getOperand(0).getOpcode() == ISD::SRL && (MC = dyn_cast<ConstantSDNode>(N->getOperand(1))) && (SC = dyn_cast<ConstantSDNode>(N->getOperand(0).getOperand(1)))) { - uint64_t sval = SC->getValue(); - uint64_t mval = MC->getValue(); + uint64_t sval = SC->getZExtValue(); + uint64_t mval = MC->getZExtValue(); // If the result is a zap, let the autogened stuff handle it. if (get_zapImm(N->getOperand(0), mval)) break; |

