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 | f5aeb1a8e4cf272c7348376d185ef8d8267653e0 (patch) | |
tree | 26c1d701871fd86197411a728c2dfde5c805254b /lib/Target/Alpha/AlphaISelDAGToDAG.cpp | |
parent | 0e3b7b2f91427807c3f544e96818072cc804e1d3 (diff) | |
download | external_llvm-f5aeb1a8e4cf272c7348376d185ef8d8267653e0.zip external_llvm-f5aeb1a8e4cf272c7348376d185ef8d8267653e0.tar.gz external_llvm-f5aeb1a8e4cf272c7348376d185ef8d8267653e0.tar.bz2 |
Rename ConstantSDNode::getValue to getZExtValue, for consistency
with ConstantInt. This led to fixing a bug in TargetLowering.cpp
using getValue instead of getAPIntValue.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Alpha/AlphaISelDAGToDAG.cpp')
-rw-r--r-- | lib/Target/Alpha/AlphaISelDAGToDAG.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/Alpha/AlphaISelDAGToDAG.cpp b/lib/Target/Alpha/AlphaISelDAGToDAG.cpp index 5487eaa..8b298db 100644 --- a/lib/Target/Alpha/AlphaISelDAGToDAG.cpp +++ b/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; |