summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
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
commit83896a59e138700045bbf18753bfa5aaf2f59b98 (patch)
treea473a6fc3a6fc474dc2070ba0a7d0a2063e4ce9d /llvm/lib/CodeGen/SelectionDAG
parent4b46cbfc23f279c860eaa72f9ac75830b47527be (diff)
downloadbcm5719-llvm-83896a59e138700045bbf18753bfa5aaf2f59b98.tar.gz
bcm5719-llvm-83896a59e138700045bbf18753bfa5aaf2f59b98.zip
Add a second ValueType argument to isFPImmLegal.
llvm-svn: 85361
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index e41175623ae..f389f7f0c9d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/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));
OpenPOWER on IntegriCloud