[llvm-commits] [llvm] r55135 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Mon P Wang wangmp at apple.com
Thu Aug 21 12:54:16 PDT 2008


Author: wangmp
Date: Thu Aug 21 14:54:16 2008
New Revision: 55135

URL: http://llvm.org/viewvc/llvm-project?rev=55135&view=rev
Log:
Treat floating point ST1 the same as ST0 when lowering for a call result

Modified:
    llvm/trunk/lib/Target/X86/X86ISelLowering.cpp

Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=55135&r1=55134&r2=55135&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Aug 21 14:54:16 2008
@@ -969,7 +969,8 @@
     // If this is a call to a function that returns an fp value on the floating
     // point stack, but where we prefer to use the value in xmm registers, copy
     // it out as F80 and use a truncate to move it from fp stack reg to xmm reg.
-    if (RVLocs[i].getLocReg() == X86::ST0 &&
+    if ((RVLocs[i].getLocReg() == X86::ST0 ||
+         RVLocs[i].getLocReg() == X86::ST1) &&
         isScalarFPTypeInSSEReg(RVLocs[i].getValVT())) {
       CopyVT = MVT::f80;
     }





More information about the llvm-commits mailing list