mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Add a second ValueType argument to isFPImmLegal.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85361 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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));
|
||||
|
Reference in New Issue
Block a user