diff options
author | Hal Finkel <hfinkel@anl.gov> | 2015-01-18 14:31:10 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2015-01-18 14:31:10 +0000 |
commit | 8ea446b6a4962cc7742a849f11b9cd1edfb48fb3 (patch) | |
tree | 9c070ae3cb9938e7645b471348baf814ac3b63a2 /llvm/lib/Target/PowerPC/PPCISelLowering.cpp | |
parent | fe3bfb80c9f1ac391d3540590f62f2b46cf92360 (diff) | |
download | bcm5719-llvm-8ea446b6a4962cc7742a849f11b9cd1edfb48fb3.tar.gz bcm5719-llvm-8ea446b6a4962cc7742a849f11b9cd1edfb48fb3.zip |
[PowerPC] Add some FIXMEs for fastcc and FPR <-> GPR moves
So we don't forget, once we support FPR <-> GPR moves on the P8, we'll likely
want to re-visit this part of the calling convention.
llvm-svn: 226401
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.cpp')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCISelLowering.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp index 58eddd7e910..2001e427705 100644 --- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp +++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp @@ -2858,6 +2858,9 @@ PPCTargetLowering::LowerFormalArguments_64SVR4( ArgVal = DAG.getCopyFromReg(Chain, dl, VReg, ObjectVT); ++FPR_idx; } else if (GPR_idx != Num_GPR_Regs && CallConv != CallingConv::Fast) { + // FIXME: We may want to re-enable this for CallingConv::Fast on the P8 + // once we support fp <-> gpr moves. + // This can only ever happen in the presence of f32 array types, // since otherwise we never run out of FPRs before running out // of GPRs. @@ -4629,6 +4632,9 @@ PPCTargetLowering::LowerCall_64SVR4(SDValue Chain, SDValue Callee, if (!NeedGPROrStack) ; else if (GPR_idx != NumGPRs && CallConv != CallingConv::Fast) { + // FIXME: We may want to re-enable this for CallingConv::Fast on the P8 + // once we support fp <-> gpr moves. + // In the non-vararg case, this can only ever happen in the // presence of f32 array types, since otherwise we never run // out of FPRs before running out of GPRs. |