diff options
| author | Dale Johannesen <dalej@apple.com> | 2007-07-03 00:53:03 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2007-07-03 00:53:03 +0000 |
| commit | a2b3c175db7055b6b6827bbfc0fd28ab26fc8dea (patch) | |
| tree | df3e92166477b29fd694653f720b2baccda7c1ed /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
| parent | 5518345f256a52d37e767db57707b5e9464a0032 (diff) | |
| download | bcm5719-llvm-a2b3c175db7055b6b6827bbfc0fd28ab26fc8dea.tar.gz bcm5719-llvm-a2b3c175db7055b6b6827bbfc0fd28ab26fc8dea.zip | |
Fix for PR 1505 (and 1489). Rewrite X87 register
model to include f32 variants. Some factoring
improvments forthcoming.
llvm-svn: 37847
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 7a7874b273e..4dadde0dfe5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -3918,15 +3918,7 @@ TargetLowering::LowerCallTo(SDOperand Chain, const Type *RetTy, Op = DAG.getNode(ExtOp, getTypeToTransformTo(VT), Op); } else { assert(MVT::isFloatingPoint(VT) && "Not int or FP?"); - // A true promotion would change the size of the argument. - // Instead, pretend this is an int. If FP objects are not - // passed the same as ints, the original type should be Legal - // and we should not get here. - Op = DAG.getNode(ISD::BIT_CONVERT, - VT==MVT::f32 ? MVT::i32 : - (VT==MVT::f64 ? MVT::i64 : - MVT::Other), - Op); + Op = DAG.getNode(ISD::FP_EXTEND, getTypeToTransformTo(VT), Op); } Ops.push_back(Op); Ops.push_back(DAG.getConstant(Flags, MVT::i32)); |

