[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Jan 11 10:21:38 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCISelLowering.cpp updated: 1.60 -> 1.61
---
Log message:

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.



---
Diffs of the changes:  (+7 -1)

 PPCISelLowering.cpp |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)


Index: llvm/lib/Target/PowerPC/PPCISelLowering.cpp
diff -u llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.60 llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.61
--- llvm/lib/Target/PowerPC/PPCISelLowering.cpp:1.60	Mon Jan  9 17:52:17 2006
+++ llvm/lib/Target/PowerPC/PPCISelLowering.cpp	Wed Jan 11 12:21:25 2006
@@ -509,7 +509,13 @@
     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)






More information about the llvm-commits mailing list