[llvm-commits] [llvm] r48310 - /llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Dale Johannesen
dalej at apple.com
Wed Mar 12 16:40:01 PDT 2008
Author: johannes
Date: Wed Mar 12 18:40:01 2008
New Revision: 48310
URL: http://llvm.org/viewvc/llvm-project?rev=48310&view=rev
Log:
Do not promote float params to double in varargs
calls here. This was done earlier for params in
the varargs part of the params; any float params
that survive to here are in the non-varargs part,
and must not be promoted.
Modified:
llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
Modified: llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp?rev=48310&r1=48309&r2=48310&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCISelLowering.cpp Wed Mar 12 18:40:01 2008
@@ -1898,12 +1898,6 @@
break;
case MVT::f32:
case MVT::f64:
- if (isVarArg) {
- // Float varargs need to be promoted to double.
- if (Arg.getValueType() == MVT::f32)
- Arg = DAG.getNode(ISD::FP_EXTEND, MVT::f64, Arg);
- }
-
if (FPR_idx != NumFPRs) {
RegsToPass.push_back(std::make_pair(FPR[FPR_idx++], Arg));
More information about the llvm-commits
mailing list