aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-10-28 01:43:28 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-10-28 01:43:28 +0000
commita0e6778c5f1e124bc15fceeca0c875614a082c79 (patch)
treeb484d56ce5a1d636e1ee0614e97ee36af4ee2525 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
parent48c10d1e1fdd6f7d2f1ce5a9e2380b281dbe3006 (diff)
downloadexternal_llvm-a0e6778c5f1e124bc15fceeca0c875614a082c79.tar.gz
external_llvm-a0e6778c5f1e124bc15fceeca0c875614a082c79.tar.bz2
external_llvm-a0e6778c5f1e124bc15fceeca0c875614a082c79.zip
Add a second ValueType argument to isFPImmLegal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85361 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 e41175623a..f389f7f0c9 100644
--- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -2574,7 +2574,7 @@ void SelectionDAGLegalize::ExpandNode(SDNode *Node,
ConstantFPSDNode *CFP = cast<ConstantFPSDNode>(Node);
// Check to see if this FP immediate is already legal.
// If this is a legal constant, turn it into a TargetConstantFP node.
- if (TLI.isFPImmLegal(CFP->getValueAPF()))
+ if (TLI.isFPImmLegal(CFP->getValueAPF(), Node->getValueType(0)))
Results.push_back(SDValue(Node, 0));
else
Results.push_back(ExpandConstantFP(CFP, true, DAG, TLI));