aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-18 14:01:07 +0000
committerDan Gohman <gohman@apple.com>2010-06-18 14:01:07 +0000
commit1c3b8d6192c8d27aecfbfed5eb46e2863c595aa4 (patch)
tree55450b92b591297f60e9d20e4a9f8e1c4207913f /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parented990f8d4d668e602e35aa0fbd984948447d91d0 (diff)
downloadexternal_llvm-1c3b8d6192c8d27aecfbfed5eb46e2863c595aa4.zip
external_llvm-1c3b8d6192c8d27aecfbfed5eb46e2863c595aa4.tar.gz
external_llvm-1c3b8d6192c8d27aecfbfed5eb46e2863c595aa4.tar.bz2
isValueValidForType can be a static member function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106278 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 04b3fdd..91aa283 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -357,7 +357,7 @@ static SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP,
EVT SVT = VT;
while (SVT != MVT::f32) {
SVT = (MVT::SimpleValueType)(SVT.getSimpleVT().SimpleTy - 1);
- if (CFP->isValueValidForType(SVT, CFP->getValueAPF()) &&
+ if (ConstantFPSDNode::isValueValidForType(SVT, CFP->getValueAPF()) &&
// Only do this if the target has a native EXTLOAD instruction from
// smaller type.
TLI.isLoadExtLegal(ISD::EXTLOAD, SVT) &&