mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-22 04:05:05 +00:00
Dead FP arguments still use an incoming FP reg. This fixes
Regression/CodeGen/PowerPC/2006-01-11-darwin-fp-argument.ll, which was distilled from a miscompilation in 252.eon. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25217 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
634f235a46
commit
413b979fe4
@ -509,7 +509,13 @@ PPCTargetLowering::LowerArguments(Function &F, SelectionDAG &DAG) {
|
||||
case MVT::f32:
|
||||
case MVT::f64:
|
||||
ObjSize = (ObjectVT == MVT::f64) ? 8 : 4;
|
||||
if (!ArgLive) break;
|
||||
if (!ArgLive) {
|
||||
if (FPR_remaining > 0) {
|
||||
--FPR_remaining;
|
||||
++FPR_idx;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (FPR_remaining > 0) {
|
||||
unsigned VReg;
|
||||
if (ObjectVT == MVT::f32)
|
||||
|
Loading…
x
Reference in New Issue
Block a user